Skip to content

Commit

Permalink
Update nested_loop.yml - add ansible facts (#7142)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbethell-1 authored Oct 9, 2023
1 parent 744f6a4 commit c8fd0d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/roles-infra/infra-osp-dns/tasks/nested_loop.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Set the query to find the public IPv4 IP of the instance
set_fact:
find_ip_query: servers[?name=='{{ _instance_name }}'].access_ipv4|[0]
find_ip_query: ansible_facts.servers[?name=='{{ _instance_name }}'].access_ipv4|[0]

- when: _dns_state == 'present'
block:
Expand Down

0 comments on commit c8fd0d4

Please sign in to comment.