Add ansible ubuntu repo directly

apt-add-repository exits true if key import fails

More info, see LP#1613639

Change-Id: I52a1adc74a73890edd4ab0641d15789a92be4c2a
This commit is contained in:
Matthew Mosesohn 2016-08-16 12:58:06 +03:00
parent 18f7686862
commit 7b0a20f02c

View File

@ -160,7 +160,8 @@ if ! admin_node_command type ansible > /dev/null || \
ubuntu)
with_retries admin_node_command -- sudo apt-get update
with_retries admin_node_command -- sudo apt-get install -y software-properties-common
with_retries admin_node_command -- sudo apt-add-repository -y ppa:ansible/ansible
with_retries admin_node_command -- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv-keys 7BB9C367
with_retries admin_node_command -- "sh -c \"sudo apt-add-repository -y 'deb http://ppa.launchpad.net/ansible/ansible/ubuntu xenial main'\""
with_retries admin_node_command -- sudo apt-get update
;;
debian)