This commit is contained in:
parent
bac7dbda24
commit
a63f359d6f
@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"userland-proxy": false,
|
"userland-proxy": false
|
||||||
"metrics-addr" : "0.0.0.0:9323",
|
|
||||||
"experimental" : true
|
|
||||||
}
|
}
|
@ -6,6 +6,7 @@
|
|||||||
name:
|
name:
|
||||||
- docker.io
|
- docker.io
|
||||||
- docker-compose
|
- docker-compose
|
||||||
|
- cadvisor
|
||||||
|
|
||||||
- name: Disable userland proxy
|
- name: Disable userland proxy
|
||||||
copy:
|
copy:
|
||||||
@ -21,6 +22,12 @@
|
|||||||
state: restarted
|
state: restarted
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
||||||
|
- name: Enable and restart cadvisor
|
||||||
|
service:
|
||||||
|
name: cadvisor
|
||||||
|
state: restarted
|
||||||
|
enabled: yes
|
||||||
|
|
||||||
- name: "Add service user to docker group"
|
- name: "Add service user to docker group"
|
||||||
ansible.builtin.user:
|
ansible.builtin.user:
|
||||||
name: service-user
|
name: service-user
|
||||||
@ -31,7 +38,7 @@
|
|||||||
- name: Allow docker exporter via ufw
|
- name: Allow docker exporter via ufw
|
||||||
community.general.ufw:
|
community.general.ufw:
|
||||||
rule: allow
|
rule: allow
|
||||||
port: 9323
|
port: "4194"
|
||||||
proto: tcp
|
proto: tcp
|
||||||
src: 192.168.69.0/24
|
src: 192.168.69.0/24
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user