xci: osa: Fix task status when bootstrapping OpenStack-Ansible 99/54899/1
authorMarkos Chandras <mchandras@suse.de>
Wed, 4 Apr 2018 10:05:16 +0000 (11:05 +0100)
committerMarkos Chandras <mchandras@suse.de>
Wed, 4 Apr 2018 10:06:51 +0000 (11:06 +0100)
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 <mchandras@suse.de>
xci/installer/osa/playbooks/configure-opnfvhost.yml

index 11957cd..a1e22a7 100644 (file)
         - 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}}"