Browse Source

Upgrade to Ansible >2.7.0 (#4471)

pull/4523/head v2.9.0
Maxime Guyot 5 years ago
committed by Kubernetes Prow Robot
parent
commit
a4e65c7ceb
7 changed files with 17 additions and 26 deletions
  1. 6
      README.md
  2. 7
      cluster.yml
  3. 7
      remove-node.yml
  4. 2
      requirements.txt
  5. 7
      reset.yml
  6. 7
      scale.yml
  7. 7
      upgrade-cluster.yml

6
README.md

@ -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))

7
cluster.yml

@ -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:

7
remove-node.yml

@ -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:

2
requirements.txt

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

7
reset.yml

@ -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:

7
scale.yml

@ -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:

7
upgrade-cluster.yml

@ -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…
Cancel
Save