From eb7391d37383892fec4b1b27714702f6aaf6e265 Mon Sep 17 00:00:00 2001 From: Hardy Erlinger Date: Sat, 16 Nov 2019 14:53:42 +0100 Subject: [PATCH] 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. --- roles/matrix-base/tasks/setup_server_base.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/matrix-base/tasks/setup_server_base.yml b/roles/matrix-base/tasks/setup_server_base.yml index 7f1749946..b32355c59 100644 --- a/roles/matrix-base/tasks/setup_server_base.yml +++ b/roles/matrix-base/tasks/setup_server_base.yml @@ -75,7 +75,7 @@ - docker-ce state: latest 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 service: