Check ansible version >=2.7.8 in recover-control-plane.yml playbook (#5724)

This commit is contained in:
Vicenç Juan Tomàs Montserrat 2020-03-07 19:17:34 +01:00 committed by GitHub
parent e029216566
commit 986c46c2b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,13 +1,13 @@
---
- hosts: localhost
gather_facts: False
become: no
tasks:
- name: "Check ansible version !=2.7.0"
- name: "Check ansible version >=2.7.8"
assert:
msg: "Ansible V2.7.0 can't be used until: https://github.com/ansible/ansible/issues/46600 is fixed"
msg: "Ansible must be v2.7.8 or higher"
that:
- ansible_version.string is version("2.7.0", "!=")
- ansible_version.string is version("2.6.0", ">=")
- ansible_version.string is version("2.7.8", ">=")
tags:
- check
vars: