solution de base, sans génération du fichier
This commit is contained in:
@@ -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 }
|
||||
@@ -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 }}"
|
||||
@@ -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" }
|
||||
|
||||
Reference in New Issue
Block a user