|
|
@ -1,4 +1,17 @@ |
|
|
|
--- |
|
|
|
- hosts: localhost |
|
|
|
tasks: |
|
|
|
- name: Check ansible version <2.7 |
|
|
|
assert: |
|
|
|
msg: "Ansible V2.7.0 can't be used until: https://github.com/ansible/ansible/issues/46600 is fixed" |
|
|
|
that: |
|
|
|
- ansible_version.string is version("2.7.0", "<") |
|
|
|
- ansible_version.string is version("2.5.0", ">=") |
|
|
|
tags: |
|
|
|
- check |
|
|
|
vars: |
|
|
|
ansible_connection: local |
|
|
|
|
|
|
|
- hosts: bastion[0] |
|
|
|
gather_facts: False |
|
|
|
roles: |
|
|
|