diff options
author | Srdjan Grubor <sgnn7@sgnn7.org> | 2014-01-14 15:11:36 -0600 |
---|---|---|
committer | Srdjan Grubor <sgnn7@sgnn7.org> | 2014-01-16 21:46:33 -0600 |
commit | 5214ed7a373ef9bea7c2028cbe60e264449da812 (patch) | |
tree | 5b1a5a0a0516824a816b96f7d1b3e650b77c3118 /ansible/playbooks | |
parent | a70540d2e6bff081f8d97686320597680960c799 (diff) |
Initial addition of ansible scripts
Diffstat (limited to 'ansible/playbooks')
-rw-r--r-- | ansible/playbooks/setup_dev_machine.yaml | 17 | ||||
-rw-r--r-- | ansible/playbooks/setup_jhbuild.yaml | 19 |
2 files changed, 36 insertions, 0 deletions
diff --git a/ansible/playbooks/setup_dev_machine.yaml b/ansible/playbooks/setup_dev_machine.yaml new file mode 100644 index 0000000..3ffe699 --- /dev/null +++ b/ansible/playbooks/setup_dev_machine.yaml @@ -0,0 +1,17 @@ +--- +# vim:ff=unix ts=2 sw=2 ai expandtab + +### +# Notice the minus on the line below -- this starts the playbook's record +# in the YAML document. Only one playbook is allowed per YAML file. Indent +# the body of the playbook. +- + hosts: dev_machine + + sudo: False + + vars_files: + - "../default_variables.yaml" + + tasks: + - include: setup_jhbuild.yaml diff --git a/ansible/playbooks/setup_jhbuild.yaml b/ansible/playbooks/setup_jhbuild.yaml new file mode 100644 index 0000000..3df6a63 --- /dev/null +++ b/ansible/playbooks/setup_jhbuild.yaml @@ -0,0 +1,19 @@ +--- +# vim:ff=unix ts=2 sw=2 ai expandtab + +- name: "Ensuring that git is installed" + apt: name=git +- name: "Creating checkout directory" + file: path=~/checkout state=directory mode=755 +- name: "Cloning jhbuild" + git: repo=git://git.gnome.org/jhbuild + dest=~/checkout/jhbuild + +- name: "Installing jhbuildi - autogen" + shell: cd ~/checkout/jhbuild && ./autogen.sh + +- name: "Installing jhbuildi - make" + shell: cd ~/checkout/jhbuild && make + +- name: "Installing jhbuildi - make install" + shell: cd ~/checkout/jhbuild && make install |