Created
February 28, 2017 10:04
-
-
Save aceqbaceq/462f011c869aec9977a710abc8e57c99 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
--- | |
- | |
become: true | |
become_user: root | |
hosts: all | |
remote_user: ubuntu | |
tasks: | |
- name: update apt list of files | |
apt: | |
update_cache: true | |
- name: install packages apt-transport-https ca-certificates curl | |
apt: | |
state: present | |
install_recommends: false | |
name: | |
- apt-transport-https | |
- ca-certificates | |
- curl | |
- name: curl thing | |
shell: curl -fsSL https://apt.dockerproject.org/gpg | sudo apt-key add - | |
- name: apt-key thing | |
shell: apt-key fingerprint 58118E89F3A912897C070ADBF76221572C52609D | |
- name: add docker repository | |
shell: add-apt-repository "deb https://apt.dockerproject.org/repo/ ubuntu-$(lsb_release -cs) main" | |
- name: update apt list of files | |
apt: | |
update_cache: true | |
- name: install docker engine | |
apt: | |
state: present | |
install_recommends: false | |
name: docker-engine | |
- name: test if docker installed correct | |
shell: docker run hello-world | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment