assert only for prometheus server
This commit is contained in:
parent
21797319de
commit
6214369892
@ -9,12 +9,18 @@
|
|||||||
- name: 'prometheus | assert | gather the package facts'
|
- name: 'prometheus | assert | gather the package facts'
|
||||||
ansible.builtin.package_facts:
|
ansible.builtin.package_facts:
|
||||||
manager: auto
|
manager: auto
|
||||||
|
when:
|
||||||
|
- prometheus_server_enable is defined
|
||||||
|
- prometheus_server_enable == "true"
|
||||||
tags:
|
tags:
|
||||||
- prometheus
|
- prometheus
|
||||||
|
|
||||||
- name: 'prometheus | assert | check if docker-ce is installed'
|
- name: 'prometheus | assert | check if docker-ce is installed'
|
||||||
assert:
|
assert:
|
||||||
that: "'docker-ce' in ansible_facts.packages"
|
that: "'docker-ce' in ansible_facts.packages"
|
||||||
|
when:
|
||||||
|
- prometheus_server_enable is defined
|
||||||
|
- prometheus_server_enable == "true"
|
||||||
tags:
|
tags:
|
||||||
- prometheus
|
- prometheus
|
||||||
|
|
||||||
@ -23,5 +29,9 @@
|
|||||||
that:
|
that:
|
||||||
- "'python-docker' in ansible_facts.packages"
|
- "'python-docker' in ansible_facts.packages"
|
||||||
- "'python3-docker' in ansible_facts.packages"
|
- "'python3-docker' in ansible_facts.packages"
|
||||||
|
when:
|
||||||
|
- prometheus_server_enable is defined
|
||||||
|
- prometheus_server_enable == "true"
|
||||||
tags:
|
tags:
|
||||||
- prometheus
|
- prometheus
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user