Skip to content

Instantly share code, notes, and snippets.

@aburan28
Created March 15, 2018 16:25
Show Gist options
  • Save aburan28/0bbe4fc1f6a07fbfad2dc6a2d6ac9f6c to your computer and use it in GitHub Desktop.
Save aburan28/0bbe4fc1f6a07fbfad2dc6a2d6ac9f6c to your computer and use it in GitHub Desktop.
- name: Add docker apt repo
apt_repository:
repo: 'deb https://apt.dockerproject.org/repo ubuntu-{{ ansible_distribution_release }} main'
state: present
register: result
- name: Import the Docker repository key
when: result|success
apt_key:
url: https://apt.dockerproject.org/gpg
state: present
id: 2C52609D
register: result
- name: Install Docker package
when: result|success
apt:
name: docker-ce
update_cache: yes
state: latest
@GrimEpp
Copy link

GrimEpp commented Mar 15, 2018

k

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment