Skip to content

Commit

Permalink
fix(ansible): fix wrong ansible version installation issue under Bion…
Browse files Browse the repository at this point in the history
  • Loading branch information
thatsdone committed Feb 9, 2020
1 parent ab0beaf commit a28560c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ansible/install_ansible.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ 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
PKG_VER=`apt-cache showpkg ansible | sed '/^Provides:/,/^Reverse Provides:/{//!b};d' | grep 2\\.4 | sort -r | head -1 | awk '{print $1;}'`
sudo apt-get install -y ansible=${PKG_VER}
sleep 3
sudo add-apt-repository -y -r ppa:ansible/ansible-${REQUIRED_ANSIBLE_VER}

Expand Down

0 comments on commit a28560c

Please sign in to comment.