This commit is contained in:
2024-10-12 20:00:06 +03:00
parent e2e4e72742
commit a90be2a294

View File

@@ -104,24 +104,21 @@
- name: Run nmcli to check if Ethernet connection has already been added
shell: /usr/bin/nmcli c | grep 'Ethernet-{{ int_name }}'
register: nmcli_result_eth
set_fact:
nmcli_result_eth_{{ int_name }}
ignore_errors: True
loop: "{{ phy_ints }}"
loop_control:
loop_var: int_name
- name: check
debug:
msg: "{{ item }}"
loop: "{{ nmcli_result_eth }}"
tags: check
- name: Check result nmcli eth
set_fact:
nmcli_eth_failed: "{{ nmcli_result_eth-{{ int_name }}.rc != 0 }}"
"nmcli_eth_failed_{{ int_name }}: {{ nmcli_result_eth-{{ int_name }}.rc != 0 }}"
loop: "{{ nmcli_result_eth }}"
loop_control:
loop_var: int_name
tags: check
- name: Run nmcli to check if Ethernet connection has already been added
shell: /usr/bin/nmcli c | grep 'LTE'
register: nmcli_result_lte