diff --git a/hosts b/hosts index 3578c85..3f51b9c 100644 --- a/hosts +++ b/hosts @@ -4,3 +4,5 @@ gw21.regensburg.freifunk.net gw31.regensburg.freifunk.net stats.ffrgb ansible_host=10.90.224.100 unms.ffrgb ansible_host=10.90.224.101 +unifi.ffrgb ansible_host=10.90.224.102 +tiles.ffrgb ansible_host=10.90.224.103 diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml new file mode 100644 index 0000000..93960b2 --- /dev/null +++ b/roles/docker/tasks/main.yml @@ -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 diff --git a/site.yml b/site.yml index d8056ab..7313015 100644 --- a/site.yml +++ b/site.yml @@ -31,3 +31,8 @@ roles: - prometheus - grafana + +- name: Setup docker servers + hosts: [unms.ffrgb, unifi.ffrgb, tiles.ffrgb] + roles: + - docker