From: zhihui wu Date: Mon, 12 Mar 2018 07:26:04 +0000 (+0800) Subject: Get Ansible to work with bare ubuntu 16.04 X-Git-Tag: opnfv-6.0.0~17 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F95%2F53495%2F1;p=qtip.git 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 --- 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)