initial commit

This commit is contained in:
Ludovic Cartier
2021-04-29 18:53:56 +02:00
commit 7879d6a13c
18 changed files with 505 additions and 0 deletions

19
tasks/asserts.yml Normal file
View File

@ -0,0 +1,19 @@
---
- name: 'prometheus | assert | check if ansible version >= 2.7'
assert:
that: ansible_version.full is version_compare(2.7, '>=')
msg: Ansible version 2.7 or later is required to use this version of the role
tags:
- prometheus
- name: 'prometheus | assert | gather the package facts'
ansible.builtin.package_facts:
manager: auto
tags:
- prometheus
- name: 'prometheus | assert | check if docker-ce is installed'
assert:
that: "'docker-ce' in ansible_facts.packages"
tags:
- prometheus