deployed-servers: symlink ansible-playbook
In RHEL8, we'll have /usr/bin/ansible-playbook provided by ansible package. Everywhere in TripleO we rely on /usr/bin/ansible-playbook but the ansible-python3 package in Fedora 28 doesn't provide it. Until it does, we have a temporary workaround that will create a symlink only if the file doesn't exist and if ansible-playbook3 is here. Change-Id: I520bf0d665fa9a331fe94168595d3b09dbf1795c Related-Bug: #1812837
This commit is contained in:
parent
a535dd6e9c
commit
7d3c7b16bb
@ -18,3 +18,13 @@ sed -i 's/^SELINUX=.*/SELINUX=permissive/' /etc/selinux/config
|
||||
|
||||
echo '# empty ruleset created by deployed-server bootstrap' > /etc/sysconfig/iptables
|
||||
echo '# empty ruleset created by deployed-server bootstrap' > /etc/sysconfig/ip6tables
|
||||
|
||||
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
|
||||
|
@ -15,3 +15,13 @@ ln -s -f /usr/share/openstack-puppet/modules/* /etc/puppet/modules
|
||||
|
||||
echo '# empty ruleset created by deployed-server bootstrap' > /etc/sysconfig/iptables
|
||||
echo '# empty ruleset created by deployed-server bootstrap' > /etc/sysconfig/ip6tables
|
||||
|
||||
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