style: fix lint

Signed-off-by: gardar <gardar@users.noreply.github.com>
This commit is contained in:
gardar 2023-01-11 19:05:01 +00:00
parent 1b3f19e2be
commit 310c1e68cf
No known key found for this signature in database
GPG key ID: 00872BAF59D98753
4 changed files with 10 additions and 6 deletions

View file

@ -48,7 +48,8 @@
block:
- name: "Get checksum list"
ansible.builtin.set_fact:
__alertmanager_checksums: "{{ lookup('url', 'https://github.com/prometheus/alertmanager/releases/download/v' + alertmanager_version + '/sha256sums.txt', wantlist=True) | list }}"
__alertmanager_checksums: "{{ lookup('url', 'https://github.com/prometheus/alertmanager/releases/download/v' + alertmanager_version +
'/sha256sums.txt', wantlist=True) | list }}"
run_once: true
- name: "Get checksum for {{ go_arch }}"
@ -138,5 +139,6 @@
- name: "`alertmanager_child_routes` is no longer supported"
ansible.builtin.fail:
msg: "Please move content of `alertmanager_child_routes` to `alertmanager_route.routes` as the former variable is deprecated and will be removed in future versions."
msg: "Please move content of `alertmanager_child_routes` to `alertmanager_route.routes` as the former variable is deprecated
and will be removed in future versions."
when: alertmanager_child_routes is defined

View file

@ -101,7 +101,8 @@
block:
- name: Get checksum list from github
ansible.builtin.set_fact:
_checksums: "{{ lookup('url', 'https://github.com/prometheus/node_exporter/releases/download/v' + node_exporter_version + '/sha256sums.txt', wantlist=True) | list }}"
_checksums: "{{ lookup('url', 'https://github.com/prometheus/node_exporter/releases/download/v' + node_exporter_version + '/sha256sums.txt',
wantlist=True) | list }}"
run_once: true
- name: "Get checksum for {{ go_arch }}"

View file

@ -106,7 +106,8 @@
block:
- name: "Get checksum list"
ansible.builtin.set_fact:
__prometheus_checksums: "{{ lookup('url', 'https://github.com/prometheus/prometheus/releases/download/v' + prometheus_version + '/sha256sums.txt', wantlist=True) | list }}"
__prometheus_checksums: "{{ lookup('url', 'https://github.com/prometheus/prometheus/releases/download/v' + prometheus_version + '/sha256sums.txt',
wantlist=True) | list }}"
run_once: true
- name: "Get checksum for {{ go_arch }}"

View file

@ -23,7 +23,7 @@
delay: 2
notify:
- reload snmp exporter
when: snmp_exporter_config_file == ""
when: not (snmp_exporter_config_file)
- name: Copy configuration file
ansible.builtin.template:
@ -35,4 +35,4 @@
no_log: "{{ 'true' if __testing_on_travis is defined else 'false' }}"
notify:
- reload snmp exporter
when: snmp_exporter_config_file != ""
when: (snmp_exporter_config_file)