diff --git a/tasks/main.yml b/tasks/main.yml index 6dbd289..ec2ff94 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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'