This commit is contained in:
2023-10-10 15:33:36 +02:00
parent efb3265a4e
commit bec5624f75

View File

@@ -15,7 +15,7 @@
ansible.builtin.lineinfile:
create: yes
path: "hostlist.yml"
line: "- { record_name: {{ item.msg.name}}, record_type: A, record_value: {{ item.msg.public_ip.address }} "
line: "- { record_name: {{ item.msg.name}}, record_type: A, record_value: {{ item.msg.public_ip.address }} }"
state: present
loop: "{{ container_info.results }}"
when: scw_gen_hostlist is true and container_action !='delete'