1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/tests/integration/targets/prepare_nuage_tests/tasks/main.yml
patchback[bot] e342dfb467
Add headers to ci tests (#954) (#960)
* CI tests: add note to main.yml

* improve

(cherry picked from commit 9d5044ac1a)

Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-09-25 09:04:59 +02:00

24 lines
723 B
YAML

####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- block:
- name: Install Nuage VSD API Simulator
pip:
name: nuage-vsd-sim
- name: Start Nuage VSD API Simulator
shell: "(cd /; nuage-vsd-sim >/dev/null 2>&1)"
async: 1800
poll: 0
- name: Wait for API to be ready
uri:
url: http://localhost:5000
register: api
delay: 3
retries: 10
until: api.status == 200
when: "ansible_python_version is version('2.7', '>=')"