Skip to content

Commit da40c84

Browse files
committed
add a lot of debugging
1 parent 7aa9739 commit da40c84

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

tests/tasks/find+remove_profile.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,29 @@
55
register: connection_name
66
changed_when: false
77

8+
- name: Debug
9+
shell: |
10+
set -x
11+
exec 1>&2
12+
systemctl status NetworkManager || :
13+
nmcli || :
14+
nmcli device status || :
15+
nmcli device show || :
16+
nmcli connection show || :
17+
nmcli connection show '{{ interface }}' || :
18+
ip a
19+
echo connection_name: {{ connection_name | to_nice_json | quote }} || :
20+
ls -alrtF /etc/sysconfig/network-scripts || :
21+
cat /etc/sysconfig/network-scripts/* || :
22+
cat /etc/NetworkManager/NetworkManager.conf || :
23+
ls -alrtF /etc/NetworkManager/system-connections || :
24+
cat /etc/NetworkManager/system-connections/*.nmconnection || :
25+
ls -alrtF /etc/NetworkManager/conf.d || :
26+
cat /etc/NetworkManager/conf.d/* || :
27+
NetworkManager --print-config
28+
journalctl -u NetworkManager || :
29+
changed_when: false
30+
831
- name: Bring down and delete the connection profile for '{{ interface }}'
932
include_role:
1033
name: linux-system-roles.network

0 commit comments

Comments
 (0)