Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ansible): fix wrong ansible version installation issue under Bionic #338

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion ansible/install_ansible.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ fi
echo Installing ansible ${REQUIRED_ANSIBLE_VER} required for ceph-ansible ${CEPH_ANSIBLE_BRANCH} branch.
sudo add-apt-repository -y ppa:ansible/ansible-${REQUIRED_ANSIBLE_VER}
sudo apt-get update
sudo apt-get install -y ansible
if [ "${REQUIRED_ANSIBLE_VER}" == "2.4" ]; then
PKG_VER=`apt-cache showpkg ansible | sed '/^Provides:/,/^Reverse Provides:/{//!b};d' | egrep ^2\\.4 | sort -r | head -1 | awk '{print $1;}'`
sudo apt-get install -y ansible=${PKG_VER}
else
sudo apt-get install -y ansible
fi
sleep 3
sudo add-apt-repository -y -r ppa:ansible/ansible-${REQUIRED_ANSIBLE_VER}

Expand Down