mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-22 03:43:09 +00:00
fix: conditional statement jinja2 templating warning (#266)
A new warning occurred after updating from ansible-core 2.15.4 to 2.15.8 [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: ... Removed the jinja2 templating delimeters to fix the warning. Signed-off-by: Ilari Iso-Junno <iisojunn@users.noreply.github.com> Co-authored-by: Ilari Iso-Junno <iisojunn@users.noreply.github.com>
This commit is contained in:
parent
214f7eda39
commit
172b4bbb08
8 changed files with 16 additions and 16 deletions
|
@ -69,8 +69,8 @@
|
|||
- name: Assert that TLS key and cert are present
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "{{ __chrony_exporter_cert_file.stat.exists }}"
|
||||
- "{{ __chrony_exporter_key_file.stat.exists }}"
|
||||
- "__chrony_exporter_cert_file.stat.exists"
|
||||
- "__chrony_exporter_key_file.stat.exists"
|
||||
|
||||
- name: Check if chrony_exporter is installed
|
||||
ansible.builtin.stat:
|
||||
|
|
|
@ -58,8 +58,8 @@
|
|||
- name: Assert that TLS key and cert are present
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "{{ __memcached_exporter_cert_file.stat.exists }}"
|
||||
- "{{ __memcached_exporter_key_file.stat.exists }}"
|
||||
- "__memcached_exporter_cert_file.stat.exists"
|
||||
- "__memcached_exporter_key_file.stat.exists"
|
||||
|
||||
- name: Check if memcached_exporter is installed
|
||||
ansible.builtin.stat:
|
||||
|
|
|
@ -69,8 +69,8 @@
|
|||
- name: Assert that TLS key and cert are present
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "{{ __mysqld_exporter_cert_file.stat.exists }}"
|
||||
- "{{ __mysqld_exporter_key_file.stat.exists }}"
|
||||
- "__mysqld_exporter_cert_file.stat.exists"
|
||||
- "__mysqld_exporter_key_file.stat.exists"
|
||||
|
||||
- name: Check if mysqld_exporter is installed
|
||||
ansible.builtin.stat:
|
||||
|
|
|
@ -69,8 +69,8 @@
|
|||
- name: Assert that TLS key and cert are present
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "{{ __node_exporter_cert_file.stat.exists }}"
|
||||
- "{{ __node_exporter_key_file.stat.exists }}"
|
||||
- "__node_exporter_cert_file.stat.exists"
|
||||
- "__node_exporter_key_file.stat.exists"
|
||||
|
||||
- name: Check if node_exporter is installed
|
||||
ansible.builtin.stat:
|
||||
|
|
|
@ -63,8 +63,8 @@
|
|||
- name: Assert that TLS key and cert are present
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "{{ __pushgateway_cert_file.stat.exists }}"
|
||||
- "{{ __pushgateway_key_file.stat.exists }}"
|
||||
- "__pushgateway_cert_file.stat.exists"
|
||||
- "__pushgateway_key_file.stat.exists"
|
||||
|
||||
- name: Check if pushgateway is installed
|
||||
ansible.builtin.stat:
|
||||
|
|
|
@ -58,8 +58,8 @@
|
|||
- name: Assert that TLS key and cert are present
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "{{ __smartctl_exporter_cert_file.stat.exists }}"
|
||||
- "{{ __smartctl_exporter_key_file.stat.exists }}"
|
||||
- "__smartctl_exporter_cert_file.stat.exists"
|
||||
- "__smartctl_exporter_key_file.stat.exists"
|
||||
|
||||
- name: Check if smartctl_exporter is installed
|
||||
ansible.builtin.stat:
|
||||
|
|
|
@ -63,8 +63,8 @@
|
|||
- name: Assert that TLS key and cert are present
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "{{ __smokeping_prober_cert_file.stat.exists }}"
|
||||
- "{{ __smokeping_prober_key_file.stat.exists }}"
|
||||
- "__smokeping_prober_cert_file.stat.exists"
|
||||
- "__smokeping_prober_key_file.stat.exists"
|
||||
|
||||
- name: Check if smokeping_prober is installed
|
||||
ansible.builtin.stat:
|
||||
|
|
|
@ -63,8 +63,8 @@
|
|||
- name: Assert that TLS key and cert are present
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "{{ __systemd_exporter_cert_file.stat.exists }}"
|
||||
- "{{ __systemd_exporter_key_file.stat.exists }}"
|
||||
- "__systemd_exporter_cert_file.stat.exists"
|
||||
- "__systemd_exporter_key_file.stat.exists"
|
||||
|
||||
- name: Assert that systemd version is >= 235 when enabling ip accounting or measuring restart count
|
||||
ansible.builtin.assert:
|
||||
|
|
Loading…
Reference in a new issue