|
|
|
1 |
22 Jul 2025 11:20:31 +0100 |
00:00:00.24 |
ansible.builtin.debug
|
Show MAC address of selected interface
|
...ansible/kuly/get_mac_addresses.yaml
:
51
|
...get_mac_addresses.yaml
|
0
|
|
|
|
|
1 |
22 Jul 2025 11:20:31 +0100 |
00:00:00.11 |
ansible.builtin.set_fact
|
Use eno1 if found, otherwise fall back to first physical interface
|
...ansible/kuly/get_mac_addresses.yaml
:
43
|
...get_mac_addresses.yaml
|
0
|
|
|
|
|
1 |
22 Jul 2025 11:20:30 +0100 |
00:00:00.13 |
ansible.builtin.set_fact
|
Try to find eno1 specifically
|
...ansible/kuly/get_mac_addresses.yaml
:
33
|
...get_mac_addresses.yaml
|
0
|
|
|
|
|
1 |
22 Jul 2025 11:20:30 +0100 |
00:00:00.16 |
ansible.builtin.assert
|
Check if any physical interfaces found
|
...ansible/kuly/get_mac_addresses.yaml
:
26
|
...get_mac_addresses.yaml
|
0
|
|
|
|
|
1 |
22 Jul 2025 11:20:30 +0100 |
00:00:00.12 |
ansible.builtin.debug
|
Show filtered physical interfaces
|
...ansible/kuly/get_mac_addresses.yaml
:
22
|
...get_mac_addresses.yaml
|
0
|
|
|
|
|
1 |
22 Jul 2025 11:20:30 +0100 |
00:00:00.15 |
ansible.builtin.set_fact
|
Filter physical interfaces (en*, eth*, em*, ens*, eno*, enp*)
|
...ansible/kuly/get_mac_addresses.yaml
:
11
|
...get_mac_addresses.yaml
|
0
|
|
|
|
|
1 |
22 Jul 2025 11:20:30 +0100 |
00:00:00.15 |
ansible.builtin.debug
|
Show all discovered interfaces (for debugging)
|
...ansible/kuly/get_mac_addresses.yaml
:
7
|
...get_mac_addresses.yaml
|
0
|
|