This repository was archived by the owner on Mar 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 42
42
remote_src : yes
43
43
creates : " /tmp/prometheus-{{ prometheus_version }}.linux-{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}/prometheus"
44
44
register : _download_binary
45
- until : _download_binary | success
45
+ until : _download_binary is succeeded
46
46
retries : 5
47
47
delay : 2
48
48
# run_once: true
90
90
- libselinux-python
91
91
- policycoreutils-python
92
92
register : _download_packages
93
- until : _download_packages | success
93
+ until : _download_packages is succeeded
94
94
retries : 5
95
95
delay : 2
96
96
when :
Original file line number Diff line number Diff line change 2
2
set_fact :
3
3
prometheus_config_validator : " /usr/local/bin/promtool check config %s"
4
4
prometheus_rules_validator : " /usr/local/bin/promtool check rules %s"
5
- when : prometheus_version | version_compare('2.0.0', '>=')
5
+ when : prometheus_version is version_compare('2.0.0', '>=')
6
6
7
7
- name : Set validator commands for prometheus 1.x
8
8
set_fact :
9
9
prometheus_config_validator : " /usr/local/bin/promtool check-config %s"
10
10
prometheus_rules_validator : " /usr/local/bin/promtool check-rules %s"
11
- when : prometheus_version | version_compare('2.0.0', '<')
11
+ when : prometheus_version is version_compare('2.0.0', '<')
12
12
13
13
- name : Check if extra config flags are duplicating ansible variables
14
14
fail :
32
32
- name : Set storage retention setting
33
33
set_fact :
34
34
prometheus_storage_retention : " {{ (prometheus_storage_retention | regex_search('\\ d+') | int ) * 24 }}h0m0s"
35
- when : prometheus_version | version_compare('2.0.0', '<')
35
+ when : prometheus_version is version_compare('2.0.0', '<')
36
36
37
37
- name : Fail when prometheus_config_flags_extra duplicates parameters set by other variables
38
38
fail :
You can’t perform that action at this time.
0 commit comments