We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3e82c08 + 27ae0b0 commit 8a95a83Copy full SHA for 8a95a83
ansible/roles/cleanup_vm/tasks/main.yml
@@ -19,6 +19,20 @@
19
loop_control:
20
label: "{{ item.path }}"
21
22
+- name: Find NetworkManager system connection files
23
+ ansible.builtin.find:
24
+ paths: /etc/NetworkManager/system-connections
25
+ patterns: "*.nmconnection"
26
+ register: networkmanager_system_connection_files
27
+
28
+- name: Delete found NetworkManager system connection files
29
+ ansible.builtin.file:
30
+ path: "{{ item.path }}"
31
+ state: absent
32
+ loop: "{{ networkmanager_system_connection_files.files }}"
33
+ loop_control:
34
+ label: "{{ item.path }}"
35
36
- name: Delete DNF cache
37
command: dnf clean all
38
0 commit comments