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:
Ilari Iso-Junno 2023-12-18 17:21:26 +02:00 committed by GitHub
parent 214f7eda39
commit 172b4bbb08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 16 additions and 16 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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