mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-22 03:43:09 +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
|
||||
mode: 0644
|
||||
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:
|
||||
- restart alertmanager
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
owner: root
|
||||
group: '{{ mysqld_exporter_system_group }}'
|
||||
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
|
||||
|
||||
- name: Configure mysqld_exporter web config
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
group: prometheus
|
||||
mode: 0640
|
||||
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:
|
||||
- reload prometheus
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
owner: root
|
||||
group: root
|
||||
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
|
||||
|
||||
- name: Configure smokeping_prober web config
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
owner: root
|
||||
group: root
|
||||
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:
|
||||
- reload snmp exporter
|
||||
when: (snmp_exporter_config_file)
|
||||
|
|
Loading…
Reference in a new issue