Commit 424aee55 authored by Łukasz Nowak's avatar Łukasz Nowak Committed by Rafael Monnerat

slapos_web_deploy: Support CentOS 7.4

ansible1.9.noarch is not available on CentOS, so just install standard
ansible. It is >=2.x, but erp5-standalone.yml playbook works with it.

/reviewed-on nexedi/slapos.core!33
parent 5018a941
...@@ -129,7 +129,11 @@ if is_ubuntu; then ...@@ -129,7 +129,11 @@ if is_ubuntu; then
is_package_installed ansible || install_package ansible=1.* is_package_installed ansible || install_package ansible=1.*
elif is_fedora; then elif is_fedora; then
# is_fedora also handle CentOS distro # is_fedora also handle CentOS distro
if [[ "$os_VENDOR" =~ (CentOS) ]] ; then
is_package_installed ansible || install_package ansible
else
is_package_installed ansible || install_package ansible1.9.noarch is_package_installed ansible || install_package ansible1.9.noarch
fi
else else
is_package_installed ansible || install_package ansible is_package_installed ansible || install_package ansible
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment