diff options
author | Markos Chandras <mchandras@suse.de> | 2018-04-04 11:05:16 +0100 |
---|---|---|
committer | Markos Chandras <mchandras@suse.de> | 2018-04-04 11:06:51 +0100 |
commit | 3539343e870b9105033ef8fb606e5dba9e6551e0 (patch) | |
tree | af7c06b2805f9e83a40aa3e5885dcc0594b809d7 | |
parent | e2b961ec221a68437fae2a062d3492b6e77d27ad (diff) |
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 <mchandras@suse.de>
-rw-r--r-- | xci/installer/osa/playbooks/configure-opnfvhost.yml | 4 |
1 files changed, 4 insertions, 0 deletions
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}}" |