2018-05-07 19:41:48 +02:00
|
|
|
- block:
|
|
|
|
- name: Install Nuage VSD API Simulator
|
|
|
|
pip:
|
|
|
|
name: nuage-vsd-sim
|
2017-07-25 13:35:03 +02:00
|
|
|
|
2018-05-07 19:41:48 +02:00
|
|
|
- name: Start Nuage VSD API Simulator
|
2019-06-26 22:58:19 +02:00
|
|
|
shell: "(cd /; nuage-vsd-sim >/dev/null 2>&1)"
|
|
|
|
async: 1800
|
2018-05-07 19:41:48 +02:00
|
|
|
poll: 0
|
2019-03-26 00:01:36 +01:00
|
|
|
|
|
|
|
- name: Wait for API to be ready
|
2019-06-26 22:58:19 +02:00
|
|
|
uri:
|
|
|
|
url: http://localhost:5000
|
|
|
|
register: api
|
|
|
|
delay: 3
|
|
|
|
retries: 10
|
|
|
|
until: api.status == 200
|
2019-03-26 00:01:36 +01:00
|
|
|
|
2018-05-07 19:41:48 +02:00
|
|
|
when: "ansible_python_version is version('2.7', '>=')"
|