Try to fix docker tests (#764)

* Try to limit docker package version if API version is < 1.39.

* Fix error.

* Re-combine to one command.
This commit is contained in:
Felix Fontein 2020-08-11 10:04:14 +02:00 committed by GitHub
commit a00d615d68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 4 deletions

View file

@ -1,7 +1,7 @@
- name: remove pip packages
pip:
state: present
name: "{{ docker_pip_packages | union(docker_pip_extra_packages) }}"
name: "{{ [docker_pip_package] | union(docker_pip_extra_packages) }}"
listen: cleanup docker
when: not docker_skip_cleanup | bool