Add role for Docker
This commit is contained in:
parent
0106d6a95e
commit
d0db9aac63
1
main.yml
1
main.yml
|
@ -9,4 +9,5 @@
|
||||||
#- vlc
|
#- vlc
|
||||||
#- vs-code
|
#- vs-code
|
||||||
#- qemu-kvm
|
#- qemu-kvm
|
||||||
|
#- docker
|
||||||
#- discord
|
#- discord
|
||||||
|
|
24
roles/docker/tasks/main.yml
Normal file
24
roles/docker/tasks/main.yml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
- name: Add Docker repository
|
||||||
|
become: yes
|
||||||
|
deb822_repository:
|
||||||
|
name: docker
|
||||||
|
types: deb
|
||||||
|
uris: https://download.docker.com/linux/debian
|
||||||
|
suites: bookworm
|
||||||
|
components: stable
|
||||||
|
signed_by: https://download.docker.com/linux/debian/gpg
|
||||||
|
state: present
|
||||||
|
enabled: yes
|
||||||
|
|
||||||
|
- name: Install packages
|
||||||
|
become: yes
|
||||||
|
apt:
|
||||||
|
state: latest
|
||||||
|
update_cache: true
|
||||||
|
install_recommends: false
|
||||||
|
name:
|
||||||
|
- docker-ce
|
||||||
|
- docker-ce-cli
|
||||||
|
- containerd.io
|
||||||
|
- docker-buildx-plugin
|
||||||
|
- docker-compose-plugin
|
Loading…
Reference in a new issue