Swap to role based tasks #1

Merged
noah.knegt merged 10 commits from roles into master 2023-02-28 15:49:55 +01:00
19 changed files with 303 additions and 72 deletions
Showing only changes of commit 85a806bf49 - Show all commits

View File

@@ -12,3 +12,19 @@
become: true
roles:
- base
# Clean up the system
- hosts: all
become: true
tasks:
- name: cleanup package cache (debian and ubuntu)
apt:
autoclean: yes
changed_when: false
when: ansible_os_family == "Debian"
- name: autoremove packages (debian and ubuntu)
apt:
autoremove: yes
purge: yes
when: ansible_os_family == "Debian"