Merge "deployed-servers: symlink ansible-playbook"

This commit is contained in:
Zuul 2019-01-25 23:13:51 +00:00 committed by Gerrit Code Review
commit 632ecfe41d
2 changed files with 20 additions and 0 deletions

View File

@ -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

View File

@ -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