Skip to content

Commit

Permalink
Only install docker-python if matrix_docker_installation_enabled
Browse files Browse the repository at this point in the history
Should help with #300 (Github Issue).
  • Loading branch information
spantaleev committed Apr 17, 2020
1 parent 4d260c0 commit 9a43cc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion roles/matrix-base/tasks/server_base/setup_centos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
- name: Ensure yum packages are installed
yum:
name:
- docker-python
- "{{ matrix_ntpd_package }}"
- fuse
state: latest
Expand All @@ -30,5 +29,6 @@
yum:
name:
- "{{ matrix_docker_package_name }}"
- docker-python
state: latest
when: matrix_docker_installation_enabled|bool
2 changes: 1 addition & 1 deletion roles/matrix-base/tasks/server_base/setup_debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 9a43cc0

Please sign in to comment.