fix: correctly set no_log bool instead of string

Signed-off-by: gardar <gardar@users.noreply.github.com>
This commit is contained in:
gardar 2023-08-21 15:17:27 +00:00
parent 4c9d044a7d
commit 82d0c730ed
No known key found for this signature in database
GPG key ID: B3FB18003ABDBC36
5 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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)