From ce543b7cd386ccc8b60ae8d3e707961ac5d1e0d8 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Mon, 29 Dec 2014 22:19:35 +0100 Subject: Update/deploy the external requirements if there is a file to do so --- roles/local_deploy/files/ansible_run.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'roles') 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 -- cgit