This commit is contained in:
2023-10-12 22:09:42 +02:00
parent bffc053a91
commit bdb66c69a6
12 changed files with 175 additions and 41 deletions

View 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 }

View File

@@ -0,0 +1,2 @@
localhost

View 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 }}"

View 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" }