mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-10 06:14:13 +00:00
style: fix lint
Signed-off-by: gardar <gardar@users.noreply.github.com>
This commit is contained in:
parent
1b3f19e2be
commit
310c1e68cf
4 changed files with 10 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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 }}"
|
||||
|
|
|
@ -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 }}"
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue