Commit e8deabfe authored by Jürgen Haas's avatar Jürgen Haas

ansible-inventories/arocom#2840 Read local variables from remote hosts when...

ansible-inventories/arocom#2840 Read local variables from remote hosts when running validate playbook
parent 94e78ce0
Pipeline #12739 passed with stage
in 57 seconds
......@@ -26,6 +26,9 @@
filter: ansible_default_ipv4
gather_subset: network
when: static_ipv4 is not defined or static_ipv4 == '' or ansible_default_ipv4 is not defined
- name: Read Local Host Settings
setup:
filter: ansible_local
- name: Set IP Address
set_fact:
static_ipv4: '{{ ansible_default_ipv4.address }}'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment