apparently query result now stored in 'msg' instead of 'results'
This commit is contained in:
@@ -24,15 +24,10 @@
|
||||
- ansible.builtin.lineinfile:
|
||||
create: yes
|
||||
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
|
||||
loop: "{{ container_info.results }}"
|
||||
when: scw_gen_hostlist == 'true' and container_action !='delete'
|
||||
|
||||
- name: debug
|
||||
debug:
|
||||
msg: "ip id: {{ container_info.msg.public_ip.id }}"
|
||||
|
||||
- name: "delete ip "
|
||||
community.general.scaleway_ip:
|
||||
id: container_info.msg.public_ip.id
|
||||
|
||||
Reference in New Issue
Block a user