docker: new role that is common to all docker VMs

This commit is contained in:
Markus 2020-06-16 22:54:53 +02:00
parent 0d5f9d3d1c
commit ea2aaee4dc
3 changed files with 24 additions and 0 deletions

2
hosts
View File

@ -4,3 +4,5 @@ gw21.regensburg.freifunk.net
gw31.regensburg.freifunk.net gw31.regensburg.freifunk.net
stats.ffrgb ansible_host=10.90.224.100 stats.ffrgb ansible_host=10.90.224.100
unms.ffrgb ansible_host=10.90.224.101 unms.ffrgb ansible_host=10.90.224.101
unifi.ffrgb ansible_host=10.90.224.102
tiles.ffrgb ansible_host=10.90.224.103

View File

@ -0,0 +1,17 @@
---
- name: Enable docker apt-key
apt_key: url='https://download.docker.com/linux/debian/gpg'
- name: Enable docker repository
apt_repository:
repo: 'deb https://download.docker.com/linux/debian buster stable'
filename: docker
- name: Install docker
apt:
name:
- docker-ce
- docker-ce-cli
- containerd.io
- docker-compose

View File

@ -31,3 +31,8 @@
roles: roles:
- prometheus - prometheus
- grafana - grafana
- name: Setup docker servers
hosts: [unms.ffrgb, unifi.ffrgb, tiles.ffrgb]
roles:
- docker