summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorMichael Scherer <misc@zarb.org>2014-12-29 22:19:35 +0100
committerMichael Scherer <misc@zarb.org>2014-12-29 22:19:35 +0100
commitce543b7cd386ccc8b60ae8d3e707961ac5d1e0d8 (patch)
tree75a4dc43a13c0cca03abbb72521e6b312739052a /roles
parentfb88568bf99e329c8d6401ea96d3e6b5b3d00dfe (diff)
Update/deploy the external requirements if there is a file to do so
Diffstat (limited to 'roles')
-rw-r--r--roles/local_deploy/files/ansible_run.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/local_deploy/files/ansible_run.sh b/roles/local_deploy/files/ansible_run.sh
index 4430224..7a40d0b 100644
--- a/roles/local_deploy/files/ansible_run.sh
+++ b/roles/local_deploy/files/ansible_run.sh
@@ -5,6 +5,10 @@ for i in local $(hostname -s) $(hostname -f); do
[ -f $FILE ] && RESULT=$FILE
done
+if [ -f /etc/ansible/requirements.yml ]; then
+ /usr/bin/ansible-galaxy install -f -r /etc/ansible/requirements.yml
+fi
+
if [ -n $RESULT ]; then
ansible-playbook -c local $RESULT
else