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