A reusable collection of assertions roles.
This collection provide :
f_pmor.assertions/var_exist_not_null
- assertions on vars to check if a var (or list of vars) are well defined and are not null.f_pmor.assertions/hashi_kv2_test_connect
- assertions to check if the connexion to and hashicorps vault (v2) is passed with success or not.f_pmor.assertions/ping_icmp
- assertions to check if the target host response to icmp ping (network classique ping not the ssh ping used by ansible ping command.)
- To use ping assertions, you need ansible > 2.9 and package below installed in order to use JC .
role : f_pmor.assertions/x |
requirements |
deb package name |
ansible collection |
---|---|---|---|
ping_icmp | ping bash command | iputils-ping | community.general |
json convert | jc | ||
hashi_kv2_test_connect | community.hashi_vault |
Install this collection locally:
ansible-galaxy collection install f_pmor.assertions -p /path/to/collections
Then you can use the roles from the collection in your playbooks.
please, have a look in the readme of each role.
Another assertions collection is available in ansible galaxy, so the assertions that ever exist in the 'marcwrobel' collection will not be reimplemented in this collection.
Documentation for the collection.
this is my first collections, so update will be available quicky with news roles and updates.