2020-02-28 20:37:50 -08:00
|
|
|
- name: remove pip packages
|
|
|
|
pip:
|
2020-09-25 18:07:38 -05:00
|
|
|
state: absent
|
|
|
|
name: "{{ docker_pip_packages | union(docker_pip_extra_packages) | difference(docker_pip_never_remove) }}"
|
2020-02-28 20:37:50 -08:00
|
|
|
listen: cleanup docker
|
|
|
|
when: not docker_skip_cleanup | bool
|
|
|
|
|
2020-09-25 18:07:38 -05:00
|
|
|
- name: remove docker packages
|
2020-02-28 20:37:50 -08:00
|
|
|
action: "{{ ansible_facts.pkg_mgr }}"
|
|
|
|
args:
|
|
|
|
name: "{{ docker_cleanup_packages }}"
|
|
|
|
state: absent
|
|
|
|
listen: cleanup docker
|
|
|
|
when: not docker_skip_cleanup | bool
|