update condition for exporter version to latest with stdout value
This commit is contained in:
parent
0246fa3e91
commit
7677eb47b7
@ -28,7 +28,7 @@
|
|||||||
notify:
|
notify:
|
||||||
- 'prometheus | mongodb exporter | restart service'
|
- 'prometheus | mongodb exporter | restart service'
|
||||||
when:
|
when:
|
||||||
- prometheus_mongodb_exporter_version < '0.2'
|
- prometheus_mongodb_exporter_latest_version.stdout < '0.2'
|
||||||
|
|
||||||
- name: 'prometheus | mongodb exporter > v0.2 | move to /usr/local/bin'
|
- name: 'prometheus | mongodb exporter > v0.2 | move to /usr/local/bin'
|
||||||
copy:
|
copy:
|
||||||
@ -41,7 +41,7 @@
|
|||||||
notify:
|
notify:
|
||||||
- 'prometheus | mongodb exporter | restart service'
|
- 'prometheus | mongodb exporter | restart service'
|
||||||
when:
|
when:
|
||||||
- prometheus_mongodb_exporter_version > '0.2'
|
- prometheus_mongodb_exporter_latest_version.stdout > '0.2'
|
||||||
|
|
||||||
- name: 'prometheus | mongodb exporter | install unit file to systemd'
|
- name: 'prometheus | mongodb exporter | install unit file to systemd'
|
||||||
template:
|
template:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user