Merge pull request #311 from hardye/non-debian-docker-ce-fix

Fix: Restrict a Debian-specific task to Debian OS.
This commit is contained in:
Slavi Pantaleev 2019-11-16 17:35:21 +02:00 committed by GitHub
commit 334596436d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,7 +75,7 @@
- docker-ce - docker-ce
state: latest state: latest
update_cache: yes update_cache: yes
when: "'docker.io' not in ansible_facts.packages" when: ansible_os_family == 'Debian' and 'docker.io' not in ansible_facts.packages
- name: Ensure Docker is started and autoruns - name: Ensure Docker is started and autoruns
service: service: