Created
March 15, 2018 16:25
-
-
Save aburan28/0bbe4fc1f6a07fbfad2dc6a2d6ac9f6c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
k