1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_versioncheck.git synced 2024-08-16 15:59:49 +02:00
ansible_role_versioncheck/README.md

39 lines
817 B
Markdown
Raw Normal View History

2020-01-15 21:41:26 +01:00
Check Ansible Version
2019-10-01 23:15:15 +02:00
========================
2020-01-15 21:41:26 +01:00
What is it doing?
--------------
2019-10-01 23:15:15 +02:00
2020-01-15 21:41:26 +01:00
This role check the ansible-playbook version and will fail, if it is to old.
This should help prevent bigger issues with to old ansible installations
2019-10-01 23:15:15 +02:00
2020-01-15 21:41:26 +01:00
How to use?
-----------
This anisble role should be executet on ``localhost``.
2019-10-01 23:15:15 +02:00
2020-01-15 21:41:26 +01:00
### Example playbook:
2020-01-15 21:50:35 +01:00
**With ansible galaxy:**
2020-01-15 21:41:26 +01:00
2020-01-15 21:50:35 +01:00
**Without ansible galaxy:**
Add this role to your roles as ``ansible_version``.
```bash
git clone https://github.com/chaos-bodensee/role-ansible_version.git roles/ansible_version
```
Your Playbook could look like this:
```ini
---
- name: secure access to toolbox gateway
hosts: localhost
tags:
- default
roles:
- ansible_version
```
2020-01-15 21:41:26 +01:00
Modifications
------------
For possible modifications please have a look into the ``default`` Folder!