Upgrade to Ansible >2.7.0 (#4471)

This commit is contained in:
Maxime Guyot 2019-04-09 13:21:07 +02:00 committed by Kubernetes Prow Robot
parent 20ebb49568
commit a4e65c7ceb
7 changed files with 17 additions and 26 deletions

View file

@ -19,10 +19,6 @@ To deploy the cluster you can use :
### Ansible ### 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 #### Usage
# Install dependencies from ``requirements.txt`` # Install dependencies from ``requirements.txt``
@ -142,7 +138,7 @@ plugins can be deployed for a given single cluster.
Requirements 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** that will run Ansible commands**
- **Jinja 2.9 (or newer) is required to run the Ansible Playbooks** - **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)) - 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))

View file

@ -3,12 +3,11 @@
gather_facts: false gather_facts: false
become: no become: no
tasks: tasks:
- name: "Check ansible version !=2.7.0" - name: "Check ansible version >=2.7.6"
assert: 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: that:
- ansible_version.string is version("2.7.0", "!=") - ansible_version.string is version("2.7.6", ">=")
- ansible_version.string is version("2.6.0", ">=")
tags: tags:
- check - check
vars: vars:

View file

@ -2,12 +2,11 @@
- hosts: localhost - hosts: localhost
become: no become: no
tasks: tasks:
- name: "Check ansible version !=2.7.0" - name: "Check ansible version >=2.7.6"
assert: 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: that:
- ansible_version.string is version("2.7.0", "!=") - ansible_version.string is version("2.7.6", ">=")
- ansible_version.string is version("2.6.0", ">=")
tags: tags:
- check - check
vars: vars:

View file

@ -1,4 +1,4 @@
ansible>=2.6.0,!=2.7.0 ansible>=2.7.6
jinja2>=2.9.6 jinja2>=2.9.6
netaddr netaddr
pbr>=1.6 pbr>=1.6

View file

@ -2,12 +2,11 @@
- hosts: localhost - hosts: localhost
become: no become: no
tasks: tasks:
- name: "Check ansible version !=2.7.0" - name: "Check ansible version >=2.7.6"
assert: 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: that:
- ansible_version.string is version("2.7.0", "!=") - ansible_version.string is version("2.7.6", ">=")
- ansible_version.string is version("2.6.0", ">=")
tags: tags:
- check - check
vars: vars:

View file

@ -3,12 +3,11 @@
gather_facts: False gather_facts: False
become: no become: no
tasks: tasks:
- name: "Check ansible version !=2.7.0" - name: "Check ansible version >=2.7.6"
assert: 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: that:
- ansible_version.string is version("2.7.0", "!=") - ansible_version.string is version("2.7.6", ">=")
- ansible_version.string is version("2.6.0", ">=")
tags: tags:
- check - check
vars: vars:

View file

@ -3,12 +3,11 @@
gather_facts: false gather_facts: false
become: no become: no
tasks: tasks:
- name: "Check ansible version !=2.7.0" - name: "Check ansible version >=2.7.6"
assert: 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: that:
- ansible_version.string is version("2.7.0", "!=") - ansible_version.string is version("2.7.6", ">=")
- ansible_version.string is version("2.6.0", ">=")
tags: tags:
- check - check
vars: vars: