Only install docker-python if matrix_docker_installation_enabled

Should help with #300 (Github Issue).
This commit is contained in:
Slavi Pantaleev 2020-04-17 09:45:35 +03:00
parent 4d260c0dd5
commit 9a43cc02e0
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,6 @@
- name: Ensure yum packages are installed
yum:
name:
- docker-python
- "{{ matrix_ntpd_package }}"
- fuse
state: latest
@ -30,5 +29,6 @@
yum:
name:
- "{{ matrix_docker_package_name }}"
- docker-python
state: latest
when: matrix_docker_installation_enabled|bool

View File

@ -27,7 +27,6 @@
- name: Ensure APT packages are installed
apt:
name:
- "python{{'3' if ansible_python.version.major == 3 else ''}}-docker"
- "{{ matrix_ntpd_package }}"
- fuse
state: latest
@ -37,5 +36,6 @@
apt:
name:
- "{{ matrix_docker_package_name }}"
- "python{{'3' if ansible_python.version.major == 3 else ''}}-docker"
state: latest
when: matrix_docker_installation_enabled|bool