Browse Source
Check ansible version >=2.7.8 in recover-control-plane.yml playbook (#5724)
pull/5732/head
Vicenç Juan Tomàs Montserrat
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
4 deletions
-
recover-control-plane.yml
|
|
@ -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: |
|
|
|