add minimal Ansible version check

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-11-04 15:55:29 +01:00
parent 7fb6661674
commit 08be7f7351
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020

View File

@ -1,4 +1,12 @@
---
- name: Pre-playbook checks
hosts: localhost
tasks:
- name: 'Verify Ansible version is 2.8 or newer'
assert:
that: 'ansible_version.full is version_compare("2.8", ">=")'
msg: 'Your Ansible version is lower than 2.8. Upgrade it.'
- name: Configure Nimbus master
hosts:
- nimbus-master