[lalal]
This commit is contained in:
@@ -131,21 +131,21 @@
|
||||
# - name: Retrieve private IP address netbird
|
||||
# ansible.builtin.gather_facts:
|
||||
|
||||
- name: Set host_interfaces list
|
||||
ansible.builtin.set_fact:
|
||||
host_interfaces: "{{ host_interfaces + [item]}}"
|
||||
vars:
|
||||
host_interfaces: []
|
||||
when: ansible_facts[item].ipv4.address is defined
|
||||
loop: "{{ ansible_facts.interfaces }}"
|
||||
# - name: Set host_interfaces list
|
||||
# ansible.builtin.set_fact:
|
||||
# host_interfaces: "{{ host_interfaces + [item]}}"
|
||||
# vars:
|
||||
# host_interfaces: []
|
||||
# when: ansible_facts[item].ipv4.address is defined
|
||||
# loop: "{{ ansible_facts.interfaces }}"
|
||||
|
||||
- name: Set host_private_address
|
||||
ansible.builtin.set_fact:
|
||||
host_private_address: "{{ ansible_facts[item].ipv4.address }}"
|
||||
vars:
|
||||
host_private_address: ""
|
||||
when: ansible_facts[item].ipv4.address | ansible.utils.ipaddr('100.96.0.0/16')
|
||||
loop: "{{ host_interfaces }}"
|
||||
# - name: Set host_private_address
|
||||
# ansible.builtin.set_fact:
|
||||
# host_private_address: "{{ ansible_facts[item].ipv4.address }}"
|
||||
# vars:
|
||||
# host_private_address: ""
|
||||
# when: ansible_facts[item].ipv4.address | ansible.utils.ipaddr('100.96.0.0/16')
|
||||
# loop: "{{ host_interfaces }}"
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user