Browse Source

bump minimal ansible version to 2.8.0 (#5984)

* bump minimal ansible version to 2.8.0

* check ansible version in separate playbook
pull/6009/head
Sergey 4 years ago
committed by GitHub
parent
commit
aead0e3a69
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 31 additions and 78 deletions
  1. 15
      ansible_version.yml
  2. 15
      cluster.yml
  3. 4
      mitogen.yaml
  4. 15
      recover-control-plane.yml
  5. 15
      remove-node.yml
  6. 15
      reset.yml
  7. 15
      scale.yml
  8. 15
      upgrade-cluster.yml

15
ansible_version.yml

@ -0,0 +1,15 @@
---
- hosts: localhost
gather_facts: false
become: no
vars:
minimal_ansible_version: 2.8.0
ansible_connection: local
tasks:
- name: "Check ansible version >={{ minimal_ansible_version }}"
assert:
msg: "Ansible must be {{ minimal_ansible_version }} or higher"
that:
- ansible_version.string is version(minimal_ansible_version, ">=")
tags:
- check

15
cluster.yml

@ -1,17 +1,6 @@
---
- hosts: localhost
gather_facts: false
become: no
tasks:
- name: "Check ansible version >=2.7.8"
assert:
msg: "Ansible must be v2.7.8 or higher"
that:
- ansible_version.string is version("2.7.8", ">=")
tags:
- check
vars:
ansible_connection: local
- name: Check ansible version
import_playbook: ansible_version.yml
- hosts: all
gather_facts: false

4
mitogen.yaml

@ -1,9 +1,13 @@
---
- name: Check ansible version
import_playbook: ansible_version.yml
- hosts: localhost
strategy: linear
vars:
mitogen_version: master
mitogen_url: https://github.com/dw/mitogen/archive/{{ mitogen_version }}.zip
ansible_connection: local
tasks:
- name: Create mitogen plugin dir
file:

15
recover-control-plane.yml

@ -1,17 +1,6 @@
---
- hosts: localhost
gather_facts: False
become: no
tasks:
- name: "Check ansible version >=2.7.8"
assert:
msg: "Ansible must be v2.7.8 or higher"
that:
- ansible_version.string is version("2.7.8", ">=")
tags:
- check
vars:
ansible_connection: local
- name: Check ansible version
import_playbook: ansible_version.yml
- hosts: bastion[0]
gather_facts: False

15
remove-node.yml

@ -1,17 +1,6 @@
---
- hosts: localhost
become: no
gather_facts: no
tasks:
- name: "Check ansible version >=2.7.8"
assert:
msg: "Ansible must be v2.7.8 or higher"
that:
- ansible_version.string is version("2.7.8", ">=")
tags:
- check
vars:
ansible_connection: local
- name: Check ansible version
import_playbook: ansible_version.yml
- hosts: "{{ node | default('etcd:k8s-cluster:calico-rr') }}"
gather_facts: no

15
reset.yml

@ -1,17 +1,6 @@
---
- hosts: localhost
become: no
gather_facts: False
tasks:
- name: "Check ansible version >=2.7.8"
assert:
msg: "Ansible must be v2.7.8 or higher"
that:
- ansible_version.string is version("2.7.8", ">=")
tags:
- check
vars:
ansible_connection: local
- name: Check ansible version
import_playbook: ansible_version.yml
- hosts: bastion[0]
gather_facts: False

15
scale.yml

@ -1,17 +1,6 @@
---
- hosts: localhost
gather_facts: False
become: no
tasks:
- name: "Check ansible version >=2.7.8"
assert:
msg: "Ansible must be v2.7.8 or higher"
that:
- ansible_version.string is version("2.7.8", ">=")
tags:
- check
vars:
ansible_connection: local
- name: Check ansible version
import_playbook: ansible_version.yml
- hosts: all
gather_facts: false

15
upgrade-cluster.yml

@ -1,17 +1,6 @@
---
- hosts: localhost
gather_facts: false
become: no
tasks:
- name: "Check ansible version >=2.7.8"
assert:
msg: "Ansible must be v2.7.8 or higher"
that:
- ansible_version.string is version("2.7.8", ">=")
tags:
- check
vars:
ansible_connection: local
- name: Check ansible version
import_playbook: ansible_version.yml
- hosts: all
gather_facts: false

Loading…
Cancel
Save