vm-ansible/roles/docker/tasks/main.yaml
Torma Kristóf ae645735b5
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
add cadvisor by hand
2022-05-29 23:33:34 +02:00

38 lines
678 B
YAML

---
- name: "Install Docker via apt"
apt:
update_cache: yes
state: present
name:
- docker.io
- docker-compose
- name: Disable userland proxy
copy:
src: daemon.json
dest: /etc/docker/daemon.json
mode: 644
owner: root
group: backup
- name: Enable and restart Docker daemon
service:
name: docker
state: restarted
enabled: yes
- name: "Add service user to docker group"
ansible.builtin.user:
name: service-user
comment: Service user
groups: docker
append: yes
- name: Allow docker exporter via ufw
community.general.ufw:
rule: allow
port: "4194"
proto: tcp
src: 192.168.69.0/24
...