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

29 lines
814 B
YAML

---
- name: Remove unneeded base packages
apt: pkg={{ cleanup_base_packages }} state=absent
when: cleanup_base_packages
tags: [ 'packages', 'pkg_cleanup' ]
- name: Remove unneeded X packages
apt: pkg={{ x_base_packages_to_remove }} state=absent
when: cleanup_x_base_packages
tags: [ 'packages', 'pkg_cleanup' ]
- name: Remove the nfs packages
apt: pkg={{ nfs_packages }} state=absent
when:
- is_not_precise
- cleanup_nfs_packages
tags: [ 'packages', 'pkg_cleanup' ]
- name: Remove rpcbind packages
apt: pkg={{ rpcbind_packages }} state=absent
when: cleanup_rpcbind_packages
tags: [ 'packages', 'pkg_cleanup' ]
- name: Remove the exim packages
apt: name={{ exim_email_server_pkgs }} state=absent
when: cleanup_exim_email_server
tags: [ 'packages', 'pkg_cleanup', 'exim' ]