summaryrefslogtreecommitdiff
path: root/roles/ansible-pull/templates/usr_local_bin_metamorphose.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/ansible-pull/templates/usr_local_bin_metamorphose.j2')
-rw-r--r--roles/ansible-pull/templates/usr_local_bin_metamorphose.j213
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/ansible-pull/templates/usr_local_bin_metamorphose.j2 b/roles/ansible-pull/templates/usr_local_bin_metamorphose.j2
new file mode 100644
index 0000000..d416526
--- /dev/null
+++ b/roles/ansible-pull/templates/usr_local_bin_metamorphose.j2
@@ -0,0 +1,13 @@
+#!/bin/sh
+# Pull ansible configuration and upgrade system
+set -e
+
+workdir=/var/lib/ansible/local
+
+mkdir --parents "$workdir"
+/usr/bin/ansible-pull \
+ --verify-commit \
+ --checkout master \
+ --sleep 10 \
+ --directory "$workdir" \
+ --url "https://github.com/jodersky/metamorphic.git"