ansible-roles/library/roles/ubuntu-deb-general/tasks/remove-unneeded-pkgs.yml

29 lines
814 B
YAML
Raw Normal View History

---
- name: Remove unneeded base packages
2019-04-01 14:15:48 +02:00
apt: pkg={{ cleanup_base_packages }} state=absent
when: cleanup_base_packages
2016-03-02 15:54:10 +01:00
tags: [ 'packages', 'pkg_cleanup' ]
- name: Remove unneeded X packages
2019-04-01 14:15:48 +02:00
apt: pkg={{ x_base_packages_to_remove }} state=absent
when: cleanup_x_base_packages
2016-03-02 15:54:10 +01:00
tags: [ 'packages', 'pkg_cleanup' ]
- name: Remove the nfs packages
2019-04-01 14:15:48 +02:00
apt: pkg={{ nfs_packages }} state=absent
when:
- is_not_precise
- cleanup_nfs_packages
2016-03-02 15:54:10 +01:00
tags: [ 'packages', 'pkg_cleanup' ]
- name: Remove rpcbind packages
2019-04-01 14:15:48 +02:00
apt: pkg={{ rpcbind_packages }} state=absent
when: cleanup_rpcbind_packages
tags: [ 'packages', 'pkg_cleanup' ]
- name: Remove the exim packages
2019-04-01 14:15:48 +02:00
apt: name={{ exim_email_server_pkgs }} state=absent
when: cleanup_exim_email_server
tags: [ 'packages', 'pkg_cleanup', 'exim' ]