apparently query result now stored in 'msg' instead of 'results'
This commit is contained in:
@@ -24,15 +24,10 @@
|
|||||||
- ansible.builtin.lineinfile:
|
- ansible.builtin.lineinfile:
|
||||||
create: yes
|
create: yes
|
||||||
path: "hostlist.yml"
|
path: "hostlist.yml"
|
||||||
line: " - { record_name: {{ item.msg.name}}, record_type: A, record_value: {{ item.msg.public_ip.address }}, public_ip_id: {{ item.msg.public_ip.id }} }"
|
line: " - { record_name: {{ container_info.msg.name}}, record_type: A, record_value: {{ container_info.msg.public_ip.address }}, public_ip_id: {{ container_info.msg.public_ip.id }} }"
|
||||||
state: present
|
state: present
|
||||||
loop: "{{ container_info.results }}"
|
|
||||||
when: scw_gen_hostlist == 'true' and container_action !='delete'
|
when: scw_gen_hostlist == 'true' and container_action !='delete'
|
||||||
|
|
||||||
- name: debug
|
|
||||||
debug:
|
|
||||||
msg: "ip id: {{ container_info.msg.public_ip.id }}"
|
|
||||||
|
|
||||||
- name: "delete ip "
|
- name: "delete ip "
|
||||||
community.general.scaleway_ip:
|
community.general.scaleway_ip:
|
||||||
id: container_info.msg.public_ip.id
|
id: container_info.msg.public_ip.id
|
||||||
|
|||||||
Reference in New Issue
Block a user