forked from inofix/common-playbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-docker.yml
37 lines (32 loc) · 1013 Bytes
/
install-docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#* This playbook wrapps the apt (and others maybe in the future..) module
#* to install `docker` and `docker-compose` (currently only on Debian bullseye.)
#* It is the first one in the row and thus has no dependencies.
#* Use '-a' to pass parameters to ansible (as '-e'). See ansible fetch for
#* details.
#* No arguments are mandatory.
- hosts: app.docker, &os.debian_bookworm
become: true
roles:
- inofix.yapkg
vars:
- yapkg__task_group_name: 'docker container solution'
- yapkg__names:
- 'docker.io'
- 'docker-compose'
- hosts: app.docker, &os.debian_bullseye
become: true
roles:
- add-backports
- inofix.yapkg
vars:
- yapkg__task_group_name: 'docker container solution'
- yapkg__names:
- 'docker.io'
- 'docker-compose'
# not enabling this yet, as it only tracks 'today'
# it is only useful for human communication and needs
# to be combined with something smarter as
# dpkg --get-selections
#- hosts: all
# roles:
# - track-packages