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>
- 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}}"