From: Markos Chandras Date: Wed, 4 Apr 2018 10:05:16 +0000 (+0100) Subject: xci: osa: Fix task status when bootstrapping OpenStack-Ansible X-Git-Tag: 6.0.0~60^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=3539343e870b9105033ef8fb606e5dba9e6551e0;p=releng-xci.git xci: osa: Fix task status when bootstrapping OpenStack-Ansible The bootstrap script from the OpenStack-Ansible repository creates several things in /opt/ansible-runtime and /usr/local/bin so we can check if the final 'openstack-ansible' symlink exists in order to report a proper status for that task and even skip if everything is prepared already. Change-Id: I4ca3a733746f8d757aa1156b533e4b4de90188e6 Signed-off-by: Markos Chandras --- diff --git a/xci/installer/osa/playbooks/configure-opnfvhost.yml b/xci/installer/osa/playbooks/configure-opnfvhost.yml index 11957cdc..a1e22a7d 100644 --- a/xci/installer/osa/playbooks/configure-opnfvhost.yml +++ b/xci/installer/osa/playbooks/configure-opnfvhost.yml @@ -118,8 +118,12 @@ - lookup('env','http_proxy') != "" - include: "{{ xci_path }}/xci/playbooks/bootstrap-scenarios.yml" + - name: bootstrap ansible on opnfv host command: "/bin/bash ./scripts/bootstrap-ansible.sh" + args: + creates: "/usr/local/bin/openstack-ansible" + changed_when: True args: chdir: "{{openstack_osa_path}}"