blob: 84d0edd154a7def3a2945fc4789255a8bf800f94 [file] [log] [blame]
---
# docker-compose/tasks/main.yml
- name: Wait for onos_setup_playbook to complete
async_status: jid={{ onos_setup_playbook.ansible_job_id }}
register: onos_setup_playbook_result
until: onos_setup_playbook_result.finished
delay: 10
retries: 120
- name: Copy SSL Certs to ONOS so docker-compose can find it
command: ansible onos-cord-1 -u ubuntu -m copy \
-a "src=/usr/local/share/ca-certificates/keystone_juju_ca_cert.crt dest=~/cord/xos-certs.crt"
- name: Build ONOS image with docker-compose
command: ansible onos-cord-1 -u ubuntu -m command \
-a "docker-compose build chdir=cord"
- name: Start ONOS
command: ansible onos-cord-1:onos-fabric-1 -u ubuntu -m command \
-a "docker-compose up -d chdir=cord"
- name: Wait for xos_setup_playbook to complete
async_status: jid={{ xos_setup_playbook.ansible_job_id }}
register: xos_setup_playbook_result
until: xos_setup_playbook_result.finished
delay: 10
retries: 120
- name: Copy admin-openrc.sh into XOS container
command: ansible xos-1 -u ubuntu -m copy \
-a "src=~/admin-openrc.sh dest={{ service_profile_repo_dest }}/{{ xos_configuration }}"
- name: Wait for test client to complete installation
when: test_client_install is defined and test_client_install
async_status: jid={{ test_client_playbook.ansible_job_id }}
register: test_client_playbook_result
until: test_client_playbook_result.finished
delay: 10
retries: 120