Change ansible version to 2.2.0

We don't want to be blocked until
https://github.com/kubernetes-incubator/kargo/pull/910
will be merged.

Change-Id: I64c08a4442a6f684ce50fb590c07108cb539ad73
This commit is contained in:
Artur Zarzycki 2017-01-17 12:44:21 +01:00
parent 652276b02a
commit 44e4e723cd
1 changed files with 6 additions and 1 deletions

View File

@ -233,7 +233,10 @@ if ! admin_node_command type ansible > /dev/null || \
with_retries admin_node_command -- "sh -c \"sudo apt-add-repository -y 'deb http://ppa.launchpad.net/ansible/ansible/ubuntu xenial main'\""
wait_for_apt_lock_release
with_retries admin_node_command -- sudo apt-get update
# (FIXME) temporary workaround until https://github.com/kubernetes-incubator/kargo/pull/910 will be merged
with_retries admin_node_command -- wget http://ppa.launchpad.net/ansible/ansible/ubuntu/pool/main/a/ansible/ansible_2.2.0.0-1ppa~xenial_all.deb
wait_for_apt_lock_release
with_retries admin_node_command -- sudo apt -y install ./ansible_2.2.0.0-1ppa~xenial_all.deb
;;
debian)
cat ${BASH_SOURCE%/*}/files/debian_backports_repo.list | admin_node_command "sudo sh -c 'cat - > /etc/apt/sources.list.d/backports.list'"
@ -242,10 +245,12 @@ if ! admin_node_command type ansible > /dev/null || \
with_retries admin_node_command -- sudo apt-get update
wait_for_apt_lock_release
with_retries admin_node_command -- sudo apt-get -y install --only-upgrade python-setuptools
wait_for_apt_lock_release
with_retries admin_node_command -- sudo apt-get install -y ansible
;;
esac
wait_for_apt_lock_release
with_retries admin_node_command -- sudo apt-get install -y ansible python-netaddr git
with_retries admin_node_command -- sudo apt-get install -y python-netaddr git
fi
echo "Checking out kargo playbook..."