Created
November 10, 2014 04:38
-
-
Save jlmitch5/04dc70f82d36494a8cfd to your computer and use it in GitHub Desktop.
An ansible playbook for setting up my NCSU Senior Design project on Ubuntu 14.10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# NOTE: you may need to include an ansible.cfg file in the same directory this file is in if the git task stalls out | |
# ansible.cfg contents: | |
# [defaults] | |
# transport = ssh | |
# | |
# [ssh_connection] | |
# ssh_args = -o ForwardAgent=yes | |
- hosts: all | |
user: root | |
sudo: True | |
roles: | |
# install this role before running this playbook! | |
# run `ansible-galaxy install crushlovely.imagemagick` | |
# this installs imagemagick if it is not installed | |
- { role: crushlovely.imagemagick } | |
tasks: | |
- name: Install Ghostscript | Install Ghostscript if it is not installed | |
action: apt pkg={{ item }} state=installed | |
with_items: | |
- ghostscript | |
- name: Install MySQL | Install MySQL if it is not installed | |
action: apt pkg={{ item }} state=installed | |
with_items: | |
- mysql-server | |
- mysql-client | |
- python-mysqldb | |
- name: Create movinup database | Creates a movinup database if one has not been created | |
mysql_db: name=movinup state=present | |
- name: Checkout movinup from git | Checkout movinup from git if it has not yet been checked out | |
git: repo=git@github.ncsu.edu:engr-csc-sdc/fall2014Team14.git | |
accept_hostkey=yes | |
dest=~/movinup | |
version=seatingplan-editor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment