Increase minimum Ansible version to '2.6'.

* add ansible version check to role prerequisites
* add requirements.txt
* update Readme.md
* track minimum ansible version in variable 'ansible_version_minimum'
This commit is contained in:
Tobias Hachmer 2018-11-09 10:43:54 +01:00
parent 28f235d65c
commit cc4b984344
No known key found for this signature in database
GPG Key ID: E112788464CA5C60
4 changed files with 10 additions and 1 deletions

View File

@ -18,7 +18,7 @@ Playbook eingebunden sein.
Voraussetzungen für die Control Machine:
- Python 2 (Versionen 2.6 oder 2.7) oder 3 (Versionen 3.5 oder höher)
- Ansible Version >= 2.5
- Ansible Version >= 2.6
- Python Modul `netaddr`
- Python Modul `dnspython`

View File

@ -1,4 +1,5 @@
---
ansible_version_minimum: "2.6"
debug_fastd: False
as_private_mwu: 65037

3
requirements.txt Normal file
View File

@ -0,0 +1,3 @@
ansible>=2.6
netaddr>=0.7.19
dnspython>=1.15.0

View File

@ -1,4 +1,9 @@
---
- name: Check for minimal Ansible version
assert:
that: "ansible_version.full is version_compare(ansible_version_minimum, '>=')"
msg: "You must update Ansible to at least version {{ ansible_version_minimum }}."
run_once: True
- name: Check basic DNS entries and target distribution
assert: