Upgrade to Ansible >2.7.0 (#4471)
This commit is contained in:
parent
20ebb49568
commit
a4e65c7ceb
7 changed files with 17 additions and 26 deletions
|
@ -19,10 +19,6 @@ 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``
|
||||
|
@ -142,7 +138,7 @@ plugins can be deployed for a given single cluster.
|
|||
Requirements
|
||||
------------
|
||||
|
||||
- **Ansible v2.6 (or newer) and python-netaddr is installed on the machine
|
||||
- **Ansible v2.7.6 (or newer) and python-netaddr is installed on the machine
|
||||
that will run Ansible commands**
|
||||
- **Jinja 2.9 (or newer) is required to run the Ansible Playbooks**
|
||||
- The target servers must have **access to the Internet** in order to pull docker images. Otherwise, additional configuration is required (See [Offline Environment](https://github.com/kubernetes-sigs/kubespray/blob/master/docs/downloads.md#offline-environment))
|
||||
|
|
|
@ -3,12 +3,11 @@
|
|||
gather_facts: false
|
||||
become: no
|
||||
tasks:
|
||||
- name: "Check ansible version !=2.7.0"
|
||||
- name: "Check ansible version >=2.7.6"
|
||||
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.6 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.6", ">=")
|
||||
tags:
|
||||
- check
|
||||
vars:
|
||||
|
|
|
@ -2,12 +2,11 @@
|
|||
- hosts: localhost
|
||||
become: no
|
||||
tasks:
|
||||
- name: "Check ansible version !=2.7.0"
|
||||
- name: "Check ansible version >=2.7.6"
|
||||
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.6 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.6", ">=")
|
||||
tags:
|
||||
- check
|
||||
vars:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
ansible>=2.6.0,!=2.7.0
|
||||
ansible>=2.7.6
|
||||
jinja2>=2.9.6
|
||||
netaddr
|
||||
pbr>=1.6
|
||||
|
|
|
@ -2,12 +2,11 @@
|
|||
- hosts: localhost
|
||||
become: no
|
||||
tasks:
|
||||
- name: "Check ansible version !=2.7.0"
|
||||
- name: "Check ansible version >=2.7.6"
|
||||
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.6 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.6", ">=")
|
||||
tags:
|
||||
- check
|
||||
vars:
|
||||
|
|
|
@ -3,12 +3,11 @@
|
|||
gather_facts: False
|
||||
become: no
|
||||
tasks:
|
||||
- name: "Check ansible version !=2.7.0"
|
||||
- name: "Check ansible version >=2.7.6"
|
||||
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.6 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.6", ">=")
|
||||
tags:
|
||||
- check
|
||||
vars:
|
||||
|
|
|
@ -3,12 +3,11 @@
|
|||
gather_facts: false
|
||||
become: no
|
||||
tasks:
|
||||
- name: "Check ansible version !=2.7.0"
|
||||
- name: "Check ansible version >=2.7.6"
|
||||
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.6 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.6", ">=")
|
||||
tags:
|
||||
- check
|
||||
vars:
|
||||
|
|
Loading…
Reference in a new issue