Setting ansible playbooks path variable
Created a variable to manage the ansible playbooks directory path. Change-Id: Iabb74e9f1aa95828c01b1957849e2b68164d7d20
This commit is contained in:
parent
85e0c0897d
commit
ece86b546b
@ -19,6 +19,7 @@
|
|||||||
# expect.
|
# expect.
|
||||||
set -e
|
set -e
|
||||||
export ANSIBLE_LOG_PATH=/var/log/puppet_run_all.log
|
export ANSIBLE_LOG_PATH=/var/log/puppet_run_all.log
|
||||||
|
ANSIBLE_PLAYBOOKS=/etc/ansible/playbooks
|
||||||
|
|
||||||
cd /opt/system-config/production
|
cd /opt/system-config/production
|
||||||
git fetch -a && git reset -q --hard @{u}
|
git fetch -a && git reset -q --hard @{u}
|
||||||
@ -36,9 +37,9 @@ set +e
|
|||||||
|
|
||||||
# First run the git/gerrit sequence, since it's important that they all work
|
# First run the git/gerrit sequence, since it's important that they all work
|
||||||
# together
|
# together
|
||||||
ansible-playbook -f 10 /etc/ansible/playbooks/remote_puppet_git.yaml
|
ansible-playbook -f 10 ${ANSIBLE_PLAYBOOKS}/remote_puppet_git.yaml
|
||||||
# Run AFS changes separately so we can make sure to only do one at a time
|
# Run AFS changes separately so we can make sure to only do one at a time
|
||||||
# (turns out quorum is nice to have)
|
# (turns out quorum is nice to have)
|
||||||
ansible-playbook -f 1 /etc/ansible/playbooks/remote_puppet_afs.yaml
|
ansible-playbook -f 1 ${ANSIBLE_PLAYBOOKS}/remote_puppet_afs.yaml
|
||||||
# Run everything else. We do not care if the other things worked
|
# Run everything else. We do not care if the other things worked
|
||||||
ansible-playbook -f 20 /etc/ansible/playbooks/remote_puppet_else.yaml
|
ansible-playbook -f 20 ${ANSIBLE_PLAYBOOKS}/remote_puppet_else.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user