From 5b5124010431306d36749375183022531cd0141c Mon Sep 17 00:00:00 2001 From: Jean-Christophe Montigny Date: Thu, 1 Aug 2019 10:37:39 +0200 Subject: [PATCH] distribution check is done by caller task file --- tasks/deployment-debian.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tasks/deployment-debian.yml b/tasks/deployment-debian.yml index 7a66fa0..c8ca731 100644 --- a/tasks/deployment-debian.yml +++ b/tasks/deployment-debian.yml @@ -8,32 +8,28 @@ update_cache: yes name: ["apt-transport-https","ca-certificates","curl","gnupg2",software-properties-common] state: latest -# when: ansible_distribution == 'Debian' - name: Debian - add docker repository key apt_key: url: "{{ swarm_apt_repo_key_url_debian }}" id: "{{ swarm_apt_repo_key_id_debian }}" state: "present" -# when: ansible_distribution == 'Debian' - name: Debian - add docker repository apt_repository: repo: '{{ swarm_apt_repository }}' state: 'present' update_cache: 'yes' -# when: ansible_distribution == 'Debian' # docker-ce installation - name: Debian - update apt and install docker-ce apt: name: ["docker-ce","docker-ce-cli","containerd.io"] state: latest -# when: ansible_distribution == 'Debian' # Enable daemon service - name: 'enable docker systemd service' service: name: 'docker' state: 'started' -# enabled: 'yes' \ No newline at end of file + enabled: 'yes'