From 8d1912b86d0a31954abdad05198bb2d69e51e8c7 Mon Sep 17 00:00:00 2001 From: zhihui wu Date: Mon, 12 Mar 2018 15:26:04 +0800 Subject: 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 --- resources/ansible_roles/openstack/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'resources/ansible_roles/openstack/tasks') 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) -- cgit 1.2.3-korg