summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
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