overcloud-agent: create ansible-playbook symlinks in post-install
overcloud-agent element takes care of deploying the heat-agents that depend on Ansible. This temporary workaround makes sure: - ansible-playbook exists if ansible-playbook-3 only is installed (f28) - ansible-playbook-3 exists if ansible-playbook only is installed (el8) Change-Id: Iad05160afb700a18caf5d3584c2826857412a3fa Related-Bug: #1812837
This commit is contained in:
parent
2404716d80
commit
5e6c7d96e3
|
@ -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