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

34 lines
954 B
YAML
Raw Normal View History

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