ff
This commit is contained in:
@@ -104,7 +104,7 @@
|
|||||||
|
|
||||||
- name: Run nmcli to check if Ethernet connection has already been added
|
- name: Run nmcli to check if Ethernet connection has already been added
|
||||||
shell: /usr/bin/nmcli c | grep 'Ethernet-{{ int_name }}'
|
shell: /usr/bin/nmcli c | grep 'Ethernet-{{ int_name }}'
|
||||||
register: nmcli_result_eth
|
register: "nmcli_result_eth-{{ int_name }}"
|
||||||
ignore_errors: True
|
ignore_errors: True
|
||||||
loop: "{{ phy_ints }}"
|
loop: "{{ phy_ints }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
@@ -112,8 +112,11 @@
|
|||||||
|
|
||||||
- name: Check result nmcli eth
|
- name: Check result nmcli eth
|
||||||
set_fact:
|
set_fact:
|
||||||
nmcli_eth_failed: "{{ nmcli_result_eth.rc != 0 }}"
|
nmcli_eth_failed: "{{ nmcli_result_eth-{{ int_name }}.rc != 0 }}"
|
||||||
|
loop: "{{ phy_ints }}"
|
||||||
|
loop_control:
|
||||||
|
loop_var: int_name
|
||||||
|
|
||||||
- name: Run nmcli to check if Ethernet connection has already been added
|
- name: Run nmcli to check if Ethernet connection has already been added
|
||||||
shell: /usr/bin/nmcli c | grep 'LTE'
|
shell: /usr/bin/nmcli c | grep 'LTE'
|
||||||
register: nmcli_result_lte
|
register: nmcli_result_lte
|
||||||
|
|||||||
Reference in New Issue
Block a user