Skip to content
Snippets Groups Projects
Commit 90d8f7aa authored by Antoine Legrand's avatar Antoine Legrand Committed by k8s-ci-robot
Browse files

Assert if ansible 2.7 is used (#3589)

parent 7abd4eea
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,12 @@ To deploy the cluster you can use :
### Ansible
#### Ansible version
Ansible v2.7.0 is failing and/or produce unexpected results due to [ansible/ansible/issues/46600](https://github.com/ansible/ansible/issues/46600)
#### Usage
# Install dependencies from ``requirements.txt``
sudo pip install -r requirements.txt
......
---
- 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:
......
---
- 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: all
vars:
......
ansible>=2.5.0
ansible>=2.5.0,<2.7
jinja2>=2.9.6
netaddr
pbr>=1.6
......
---
- 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: all
gather_facts: true
......
---
- 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:
......
---
- 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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment