Fix: Restrict a Debian-specific task to Debian OS.

Since commit b9753635 the task 'Ensure docker-ce is installed (Debian)' fails with an error on CentOS although it should not even run on this OS.
This commit is contained in:
Hardy Erlinger 2019-11-16 14:53:42 +01:00
parent a297e617ca
commit eb7391d373

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: