chore: add base role

This commit is contained in:
2025-09-10 21:43:11 +10:00
parent 12444311a4
commit 4a88726fba
12 changed files with 284 additions and 422 deletions

View File

@ -0,0 +1,17 @@
---
- name: Find all EXTERNALLY-MANAGED files under /usr/lib/python*
find:
paths: /usr/lib
patterns: "EXTERNALLY-MANAGED"
file_type: file
recurse: yes
register: externally_managed_files
become: yes
- name: Delete EXTERNALLY-MANAGED files
file:
path: "{{ item.path }}"
state: absent
loop: "{{ externally_managed_files.files }}"
when: externally_managed_files.matched > 0
become: yes