solution
This commit is contained in:
7
sib.scw_container/tests/hostlist.yml
Normal file
7
sib.scw_container/tests/hostlist.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
dns_records:
|
||||
- { record_name: test3.formation.opendoor.fr., record_type: A, record_value: 51.15.243.244 }
|
||||
- { record_name: test4.formation.opendoor.fr., record_type: A, record_value: 212.47.251.35 }
|
||||
- { record_name: test5.formation.opendoor.fr., record_type: A, record_value: 51.15.142.152 }
|
||||
- { record_name: test3.formation.opendoor.fr, record_type: A, record_value: 51.15.243.244 }
|
||||
- { record_name: test4.formation.opendoor.fr, record_type: A, record_value: 212.47.251.35 }
|
||||
- { record_name: test5.formation.opendoor.fr, record_type: A, record_value: 51.15.142.152 }
|
||||
2
sib.scw_container/tests/inventory
Normal file
2
sib.scw_container/tests/inventory
Normal file
@@ -0,0 +1,2 @@
|
||||
localhost
|
||||
|
||||
7
sib.scw_container/tests/range.yml
Normal file
7
sib.scw_container/tests/range.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
tasks:
|
||||
- name: with_sequence -> loop
|
||||
ansible.builtin.debug:
|
||||
msg: "{{ 'testuser%02x' | format(item) }}"
|
||||
loop: "{{ range(0, 4 + 1, 2)|list }}"
|
||||
12
sib.scw_container/tests/test.yml
Normal file
12
sib.scw_container/tests/test.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
# call me with --extra-vars=@hostlist.yml
|
||||
---
|
||||
- hosts: localhost
|
||||
vars:
|
||||
container_list:
|
||||
- { host_name: test3.formation.opendoor.fr, host_type: DEV1-S, host_image: 26e4c50e-91d6-41a5-8898-9e40920e819d }
|
||||
- { host_name: test4.formation.opendoor.fr, host_type: DEV1-S, host_image: 26e4c50e-91d6-41a5-8898-9e40920e819d }
|
||||
- { host_name: test5.formation.opendoor.fr, host_type: DEV1-S, host_image: 26e4c50e-91d6-41a5-8898-9e40920e819d }
|
||||
container_action: running
|
||||
roles:
|
||||
- tco.scw_container
|
||||
- { role: tco.dns, dns_action: "add" }
|
||||
Reference in New Issue
Block a user