summaryrefslogtreecommitdiff
path: root/ansible/playbooks
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/playbooks')
-rw-r--r--ansible/playbooks/setup_dev_machine.yaml17
-rw-r--r--ansible/playbooks/setup_jhbuild.yaml19
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