Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
feat(ansible): Migrate Ubuntu Jammy III.
[csit.git]
/
fdio.infra.ansible
/
roles
/
prometheus_exporter
/
tasks
/
main.yaml
diff --git
a/fdio.infra.ansible/roles/prometheus_exporter/tasks/main.yaml
b/fdio.infra.ansible/roles/prometheus_exporter/tasks/main.yaml
index
3f4b563
..
ef9da40
100644
(file)
--- a/
fdio.infra.ansible/roles/prometheus_exporter/tasks/main.yaml
+++ b/
fdio.infra.ansible/roles/prometheus_exporter/tasks/main.yaml
@@
-2,8
+2,8
@@
# file: roles/prometheus_exporter/tasks/main.yaml
- name: Inst - Update Package Cache (APT)
# file: roles/prometheus_exporter/tasks/main.yaml
- name: Inst - Update Package Cache (APT)
- apt:
- update_cache:
yes
+ a
nsible.builtin.a
pt:
+ update_cache:
true
cache_valid_time: 3600
when:
- ansible_distribution|lower == 'ubuntu'
cache_valid_time: 3600
when:
- ansible_distribution|lower == 'ubuntu'
@@
-11,7
+11,7
@@
- prometheus-inst
- name: Inst - Prerequisites
- prometheus-inst
- name: Inst - Prerequisites
- package:
+
ansible.builtin.
package:
name: "{{ packages | flatten(levels=1) }}"
state: latest
tags:
name: "{{ packages | flatten(levels=1) }}"
state: latest
tags:
@@
-23,10
+23,10
@@
image: "{{ ne_image }}"
state: "started"
restart_policy: "unless-stopped"
image: "{{ ne_image }}"
state: "started"
restart_policy: "unless-stopped"
- detach:
yes
+ detach:
true
ports:
ports:
- - "9100:9100"
- privileged:
yes
+
- "9100:9100"
+ privileged:
true
command:
- "--path.procfs=/host/proc"
- "--path.rootfs=/rootfs"
command:
- "--path.procfs=/host/proc"
- "--path.rootfs=/rootfs"
@@
-48,9
+48,9
@@
- prometheus-conf-blackbox-exporter
- name: Conf - Prometheus Blackbox Exporter
- prometheus-conf-blackbox-exporter
- name: Conf - Prometheus Blackbox Exporter
- copy:
- src: "files/blackbox.yml"
- dest: "/etc/prometheus/blackbox.yml"
+
ansible.builtin.
copy:
+
src: "files/blackbox.yml"
+
dest: "/etc/prometheus/blackbox.yml"
tags:
- prometheus-conf-blackbox-exporter
tags:
- prometheus-conf-blackbox-exporter
@@
-60,13
+60,13
@@
image: "{{ be_image }}"
state: "started"
restart_policy: "unless-stopped"
image: "{{ be_image }}"
state: "started"
restart_policy: "unless-stopped"
- detach:
yes
+ detach:
true
ports:
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:
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