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