This commit is contained in:
2021-01-29 21:09:08 +01:00
parent dae762e43f
commit 0ffc26fdd9
5 changed files with 124 additions and 2 deletions

View File

@ -265,6 +265,28 @@
tags:
- apt-remove
- name: (apt.yml) Remove unwanted packages Ubuntu bionic
apt:
name: "{{ apt_remove_bionic }}"
state: absent
purge: "{{ apt_remove_purge }}"
when:
- ansible_facts['distribution'] == "Ubuntu"
- ansible_facts['distribution_release'] == "bionic"
tags:
- apt-remove
- name: (apt.yml) Remove unwanted packages Ubuntu xenial
apt:
name: "{{ apt_remove_xenial }}"
state: absent
purge: "{{ apt_remove_purge }}"
when:
- ansible_facts['distribution'] == "Ubuntu"
- ansible_facts['distribution_release'] == "xenial"
tags:
- apt-remove
- name: (apt.yml) autoremove
apt:
autoremove: true