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

pull/5732/head
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
1 changed files with 4 additions and 4 deletions

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: