mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-22 11:53:12 +00:00
fix: correctly set no_log bool instead of string
Signed-off-by: gardar <gardar@users.noreply.github.com>
This commit is contained in:
parent
4c9d044a7d
commit
82d0c730ed
5 changed files with 5 additions and 5 deletions
|
@ -17,7 +17,7 @@
|
||||||
group: alertmanager
|
group: alertmanager
|
||||||
mode: 0644
|
mode: 0644
|
||||||
validate: "{{ _alertmanager_binary_install_dir }}/amtool check-config %s"
|
validate: "{{ _alertmanager_binary_install_dir }}/amtool check-config %s"
|
||||||
no_log: "{{ 'false' if lookup('env', 'CI') else 'true' }}"
|
no_log: "{{ false if (lookup('env', 'CI')) or (lookup('env', 'MOLECULE_PROVISIONER_NAME')) else true }}"
|
||||||
notify:
|
notify:
|
||||||
- restart alertmanager
|
- restart alertmanager
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: '{{ mysqld_exporter_system_group }}'
|
group: '{{ mysqld_exporter_system_group }}'
|
||||||
mode: '0640'
|
mode: '0640'
|
||||||
no_log: "{{ 'false' if lookup('env', 'CI') else 'true' }}"
|
no_log: "{{ false if (lookup('env', 'CI')) or (lookup('env', 'MOLECULE_PROVISIONER_NAME')) else true }}"
|
||||||
notify: restart mysqld_exporter
|
notify: restart mysqld_exporter
|
||||||
|
|
||||||
- name: Configure mysqld_exporter web config
|
- name: Configure mysqld_exporter web config
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
group: prometheus
|
group: prometheus
|
||||||
mode: 0640
|
mode: 0640
|
||||||
validate: "{{ _prometheus_binary_install_dir }}/promtool check config %s"
|
validate: "{{ _prometheus_binary_install_dir }}/promtool check config %s"
|
||||||
no_log: "{{ 'false' if lookup('env', 'CI') else 'true' }}"
|
no_log: "{{ false if (lookup('env', 'CI')) or (lookup('env', 'MOLECULE_PROVISIONER_NAME')) else true }}"
|
||||||
notify:
|
notify:
|
||||||
- reload prometheus
|
- reload prometheus
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
no_log: "{{ 'false' if lookup('env', 'CI') else 'true' }}"
|
no_log: "{{ false if (lookup('env', 'CI')) or (lookup('env', 'MOLECULE_PROVISIONER_NAME')) else true }}"
|
||||||
notify: restart smokeping_prober
|
notify: restart smokeping_prober
|
||||||
|
|
||||||
- name: Configure smokeping_prober web config
|
- name: Configure smokeping_prober web config
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
no_log: "{{ 'false' if lookup('env', 'CI') else 'true' }}"
|
no_log: "{{ false if (lookup('env', 'CI')) or (lookup('env', 'MOLECULE_PROVISIONER_NAME')) else true }}"
|
||||||
notify:
|
notify:
|
||||||
- reload snmp exporter
|
- reload snmp exporter
|
||||||
when: (snmp_exporter_config_file)
|
when: (snmp_exporter_config_file)
|
||||||
|
|
Loading…
Reference in a new issue