mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-12-29 10:29:31 +01:00
30 lines
741 B
YAML
30 lines
741 B
YAML
---
|
|
- hosts: all
|
|
become: yes
|
|
tasks:
|
|
- name: install prerequisites
|
|
apt:
|
|
name:
|
|
- apt-transport-https
|
|
- ca-certificates
|
|
- curl
|
|
- gnupg-agent
|
|
- software-properties-common
|
|
update_cache: yes
|
|
- name: add apt-key
|
|
apt_key:
|
|
url: https://download.docker.com/linux/ubuntu/gpg
|
|
- name: add docker repo
|
|
apt_repository:
|
|
repo: deb https://download.docker.com/linux/ubuntu focal stable
|
|
- name: install docker
|
|
apt:
|
|
name:
|
|
- docker-ce
|
|
- docker-ce-cli
|
|
- containerd.io
|
|
- docker-compose
|
|
update_cache: yes
|
|
- name: add userpermissions
|
|
shell: "usermod -aG docker vagrant"
|