First commit
This commit is contained in:
commit
dc708aa3dd
11 changed files with 340 additions and 0 deletions
31
tasks/provisioning/extras/docker.yml
Normal file
31
tasks/provisioning/extras/docker.yml
Normal file
|
@ -0,0 +1,31 @@
|
|||
- name: Install prerequisite packages
|
||||
apt:
|
||||
pkg:
|
||||
- ca-certificates
|
||||
- gnupg
|
||||
|
||||
- name: Add Docker GPG Key
|
||||
apt_key:
|
||||
url: https://download.docker.com/linux/ubuntu/gpg
|
||||
state: present
|
||||
|
||||
- name: Add Docker repo
|
||||
apt_repository:
|
||||
repo: deb https://download.docker.com/linux/ubuntu focal stable
|
||||
state: present
|
||||
|
||||
- name: Install Docker
|
||||
apt:
|
||||
update_cache: true
|
||||
pkg:
|
||||
- docker-ce
|
||||
- docker-ce-cli
|
||||
- containerd.io
|
||||
- docker-buildx-plugin
|
||||
- docker-compose-plugin
|
||||
|
||||
- name: Add '{{ ansible_user }}' to docker group
|
||||
user:
|
||||
name: fern
|
||||
groups: docker
|
||||
append: yes
|
Loading…
Add table
Add a link
Reference in a new issue