Skip to content

Commit

Permalink
distribution check is done by caller task file
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmontigny committed Aug 1, 2019
1 parent aaa548b commit 5b51240
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tasks/deployment-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
enabled: 'yes'

0 comments on commit 5b51240

Please sign in to comment.