Get Ansible to work with bare ubuntu 16.04 95/53495/1
authorzhihui wu <wu.zhihui1@zte.com.cn>
Mon, 12 Mar 2018 07:26:04 +0000 (15:26 +0800)
committerzhihui wu <wu.zhihui1@zte.com.cn>
Mon, 12 Mar 2018 07:26:04 +0000 (15:26 +0800)
Bare ubuntu 16.04 doesn't have python2.

[1] https://gist.github.com/gwillem/4ba393dceb55e5ae276a87300f6b8e6f.

Change-Id: I677fe0b387826b0c94c8a819a6424d3f4e8a3448
Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
resources/ansible_roles/openstack/tasks/main.yml

index 6fabfb0..b42c43f 100644 (file)
@@ -95,3 +95,9 @@
   template:
     src: ssh.cfg.j2
     dest: ./ssh.cfg
+
+- name: Wait 600 seconds for target connection to become reachable/usable
+  wait_for_connection:
+
+- name: install python 2
+  raw: test -e /usr/bin/python || (apt-get -y update && apt-get install -y python-minimal)