first commit

This commit is contained in:
Marvin Steadfast 2020-10-12 13:27:17 +02:00
commit 3dbcc51079
3 changed files with 20 additions and 0 deletions

2
defaults/main.yml Normal file
View File

@ -0,0 +1,2 @@
---
cadvisor___image: "{{ 'quay.io/xsteadfastx/cadvisor:latest' if ansible_architecture == 'aarch64' else 'gcr.io/cadvisor/cadvisor:latest'}}"

3
meta/main.yml Normal file
View File

@ -0,0 +1,3 @@
---
galaxy_info:
role_name: xsfx.cadvisor

15
tasks/main.yml Normal file
View File

@ -0,0 +1,15 @@
---
- name: metrics container
docker_container:
name: cadvisor
image: "{{ docker__metrics_image }}"
pull: true
recreate: true
restart_policy: always
ports:
- 0.0.0.0:9323:8080
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro