solution de base, sans génération du fichier

This commit is contained in:
2024-06-19 17:56:11 +02:00
parent bdb66c69a6
commit 117f388db7
8 changed files with 38 additions and 54 deletions

View File

@@ -1,7 +0,0 @@
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

@@ -1,7 +0,0 @@
---
- hosts: localhost
tasks:
- name: with_sequence -> loop
ansible.builtin.debug:
msg: "{{ 'testuser%02x' | format(item) }}"
loop: "{{ range(0, 4 + 1, 2)|list }}"

View File

@@ -1,12 +1,9 @@
# 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
container_number: 4
container_prefix: plop
container_image: lezknfe2324
roles:
- tco.scw_container
- { role: tco.dns, dns_action: "add" }