- name: Inst - Update Package Cache (APT)
apt:
- update_cache: yes
+ update_cache: true
cache_valid_time: 3600
when:
- ansible_distribution|lower == 'ubuntu'
image: "{{ ne_image }}"
state: "started"
restart_policy: "unless-stopped"
- detach: yes
+ detach: true
ports:
- - "9100:9100"
- privileged: yes
+ - "9100:9100"
+ privileged: true
command:
- "--path.procfs=/host/proc"
- "--path.rootfs=/rootfs"
- name: Conf - Prometheus Blackbox Exporter
copy:
- src: "files/blackbox.yml"
- dest: "/etc/prometheus/blackbox.yml"
+ src: "files/blackbox.yml"
+ dest: "/etc/prometheus/blackbox.yml"
tags:
- prometheus-conf-blackbox-exporter
image: "{{ be_image }}"
state: "started"
restart_policy: "unless-stopped"
- detach: yes
+ detach: true
ports:
- - "9115:9115"
- privileged: yes
+ - "9115:9115"
+ privileged: true
command:
- "--config.file=/config/blackbox.yml"
volumes:
- "/etc/prometheus/blackbox.yml:/config/blackbox.yml:ro"
tags:
- - prometheus-inst
\ No newline at end of file
+ - prometheus-inst