Improve docker test setups (#1161) (#1174)

* Improve readability.

* Move common code to new file.

(cherry picked from commit 167153bff5)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2020-10-26 08:52:09 +00:00 committed by GitHub
commit 34c164dc78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 131 additions and 143 deletions

View file

@ -1,11 +1,11 @@
- name: remove pip packages
- name: Remove pip packages
pip:
state: present
name: "{{ [docker_pip_package] | union(docker_pip_extra_packages) }}"
listen: cleanup docker
when: not docker_skip_cleanup | bool
- name: remove docker pagkages
- name: Remove docker pagkages
action: "{{ ansible_facts.pkg_mgr }}"
args:
name: "{{ docker_cleanup_packages }}"