Assert if ansible 2.7 is used (#3589)
This commit is contained in:
parent
7abd4eeafd
commit
90d8f7aa6a
7 changed files with 70 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
13
cluster.yml
13
cluster.yml
|
@ -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:
|
||||
|
|
|
@ -1,4 +1,16 @@
|
|||
---
|
||||
- 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:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
ansible>=2.5.0
|
||||
ansible>=2.5.0,<2.7
|
||||
jinja2>=2.9.6
|
||||
netaddr
|
||||
pbr>=1.6
|
||||
|
|
12
reset.yml
12
reset.yml
|
@ -1,4 +1,16 @@
|
|||
---
|
||||
- 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
|
||||
|
|
13
scale.yml
13
scale.yml
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue