|
|
@ -1,5 +1,17 @@ |
|
|
|
--- |
|
|
|
|
|
|
|
- name: Install docker packages |
|
|
|
apt: |
|
|
|
name: "{{ item }}" |
|
|
|
state: present |
|
|
|
update_cache: yes |
|
|
|
with_items: |
|
|
|
- apt-transport-https |
|
|
|
- ca-certificates |
|
|
|
- curl |
|
|
|
- gnupg-agent |
|
|
|
- software-properties-common |
|
|
|
|
|
|
|
- name: Add Docker s official GPG key |
|
|
|
remote_user: ubuntu |
|
|
|
apt_key: |
|
|
@ -14,7 +26,7 @@ |
|
|
|
|
|
|
|
- name: Add deb repository |
|
|
|
apt_repository: |
|
|
|
repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable |
|
|
|
repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable |
|
|
|
state: present |
|
|
|
update_cache: yes |
|
|
|
|
|
|
|