Add role for Docker
This commit is contained in:
parent
0106d6a95e
commit
d0db9aac63
2 changed files with 25 additions and 0 deletions
1
main.yml
1
main.yml
|
@ -9,4 +9,5 @@
|
|||
#- vlc
|
||||
#- vs-code
|
||||
#- qemu-kvm
|
||||
#- docker
|
||||
#- 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…
Add table
Reference in a new issue