Browse Source

fix-docker

pull/7/head
fedy95 5 years ago
parent
commit
1be59dffbb
  1. 14
      roles/docker/tasks/main.yml

14
roles/docker/tasks/main.yml

@ -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