Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions ansible/roles/cleanup_vm/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,20 @@
loop_control:
label: "{{ item.path }}"

- name: Find NetworkManager system connection files
ansible.builtin.find:
paths: /etc/NetworkManager/system-connections
patterns: "*.nmconnection"
register: networkmanager_system_connection_files

- name: Delete found NetworkManager system connection files
ansible.builtin.file:
path: "{{ item.path }}"
state: absent
loop: "{{ networkmanager_system_connection_files.files }}"
loop_control:
label: "{{ item.path }}"

- name: Delete DNF cache
command: dnf clean all

Expand Down