xci: Add ansible files for sandbox aio flavor
[releng.git] / prototypes / xci / file / aio / configure-opnfvhost.yml
1 ---
2 - hosts: opnfv
3   remote_user: root
4   vars_files:
5   vars_files:
6     - ../var/opnfv.yml
7   roles:
8     - role: remove-folders
9     - { role: clone-repository, project: "openstack/openstack-ansible", repo: "{{ OPENSTACK_OSA_GIT_URL }}", dest: "{{ OPENSTACK_OSA_PATH }}", version: "{{ OPENSTACK_OSA_VERSION }}" }
10   tasks:
11     - name: bootstrap ansible on opnfv host
12       command: "/bin/bash ./scripts/bootstrap-ansible.sh"
13       args:
14         chdir: "{{OPENSTACK_OSA_PATH}}"
15     - name: bootstrap opnfv host as aio
16       command: "/bin/bash ./scripts/bootstrap-aio.sh"
17       args:
18         chdir: "{{OPENSTACK_OSA_PATH}}"
19     - name: install OpenStack on opnfv host - this command doesn't log anything to console
20       command: "/bin/bash ./scripts/run-playbooks.sh"
21       args:
22         chdir: "{{OPENSTACK_OSA_PATH}}"