aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhihui wu <wu.zhihui1@zte.com.cn>2018-03-12 15:26:04 +0800
committerzhihui wu <wu.zhihui1@zte.com.cn>2018-03-12 15:26:04 +0800
commit8d1912b86d0a31954abdad05198bb2d69e51e8c7 (patch)
tree0470cbd25dc74d580ac4f1ac4a8098379d9ab832
parent0e105924554824f9d08df24678e83e174fef2197 (diff)
Get Ansible to work with bare ubuntu 16.04
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>
-rw-r--r--resources/ansible_roles/openstack/tasks/main.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/resources/ansible_roles/openstack/tasks/main.yml b/resources/ansible_roles/openstack/tasks/main.yml
index 6fabfb01..b42c43fb 100644
--- a/resources/ansible_roles/openstack/tasks/main.yml
+++ b/resources/ansible_roles/openstack/tasks/main.yml
@@ -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)