Skip to content
This repository was archived by the owner on Mar 6, 2023. It is now read-only.

Commit 3ece416

Browse files
authored
Merge pull request #88 from cloudalchemy/deprecation_warnings
use new filter schema
2 parents b481f15 + e5c4c39 commit 3ece416

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tasks/install.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
remote_src: yes
4343
creates: "/tmp/prometheus-{{ prometheus_version }}.linux-{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}/prometheus"
4444
register: _download_binary
45-
until: _download_binary | success
45+
until: _download_binary is succeeded
4646
retries: 5
4747
delay: 2
4848
# run_once: true
@@ -90,7 +90,7 @@
9090
- libselinux-python
9191
- policycoreutils-python
9292
register: _download_packages
93-
until: _download_packages | success
93+
until: _download_packages is succeeded
9494
retries: 5
9595
delay: 2
9696
when:

tasks/preflight.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
set_fact:
33
prometheus_config_validator: "/usr/local/bin/promtool check config %s"
44
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', '>=')
66

77
- name: Set validator commands for prometheus 1.x
88
set_fact:
99
prometheus_config_validator: "/usr/local/bin/promtool check-config %s"
1010
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', '<')
1212

1313
- name: Check if extra config flags are duplicating ansible variables
1414
fail:
@@ -32,7 +32,7 @@
3232
- name: Set storage retention setting
3333
set_fact:
3434
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', '<')
3636

3737
- name: Fail when prometheus_config_flags_extra duplicates parameters set by other variables
3838
fail:

0 commit comments

Comments
 (0)