Merge "overcloud-agent: create ansible-playbook symlinks in post-install"
This commit is contained in:
commit
53f4899ce4
14
elements/overcloud-agent/post-install.d/51-ansible-symlink
Executable file
14
elements/overcloud-agent/post-install.d/51-ansible-symlink
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -eux
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
if [ ! -f /usr/bin/ansible-playbook ]; then
|
||||||
|
if [ -f /usr/bin/ansible-playbook-3 ]; then
|
||||||
|
ln -s -f /usr/bin/ansible-playbook-3 /usr/local/bin/ansible-playbook
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if [ ! -f /usr/bin/ansible-playbook-3 ]; then
|
||||||
|
ln -s -f /usr/bin/ansible-playbook /usr/local/bin/ansible-playbook-3
|
||||||
|
fi
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user