bump minimal ansible version to 2.8.0 (#5984)
* bump minimal ansible version to 2.8.0 * check ansible version in separate playbook
This commit is contained in:
parent
b0484fe3e5
commit
aead0e3a69
8 changed files with 31 additions and 78 deletions
15
ansible_version.yml
Normal file
15
ansible_version.yml
Normal file
|
@ -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
15
cluster.yml
|
@ -1,17 +1,6 @@
|
||||||
---
|
---
|
||||||
- hosts: localhost
|
- name: Check ansible version
|
||||||
gather_facts: false
|
import_playbook: ansible_version.yml
|
||||||
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
|
|
||||||
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
|
|
|
@ -1,9 +1,13 @@
|
||||||
---
|
---
|
||||||
|
- name: Check ansible version
|
||||||
|
import_playbook: ansible_version.yml
|
||||||
|
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
strategy: linear
|
strategy: linear
|
||||||
vars:
|
vars:
|
||||||
mitogen_version: master
|
mitogen_version: master
|
||||||
mitogen_url: https://github.com/dw/mitogen/archive/{{ mitogen_version }}.zip
|
mitogen_url: https://github.com/dw/mitogen/archive/{{ mitogen_version }}.zip
|
||||||
|
ansible_connection: local
|
||||||
tasks:
|
tasks:
|
||||||
- name: Create mitogen plugin dir
|
- name: Create mitogen plugin dir
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -1,17 +1,6 @@
|
||||||
---
|
---
|
||||||
- hosts: localhost
|
- name: Check ansible version
|
||||||
gather_facts: False
|
import_playbook: ansible_version.yml
|
||||||
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
|
|
||||||
|
|
||||||
- hosts: bastion[0]
|
- hosts: bastion[0]
|
||||||
gather_facts: False
|
gather_facts: False
|
||||||
|
|
|
@ -1,17 +1,6 @@
|
||||||
---
|
---
|
||||||
- hosts: localhost
|
- name: Check ansible version
|
||||||
become: no
|
import_playbook: ansible_version.yml
|
||||||
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
|
|
||||||
|
|
||||||
- hosts: "{{ node | default('etcd:k8s-cluster:calico-rr') }}"
|
- hosts: "{{ node | default('etcd:k8s-cluster:calico-rr') }}"
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
|
|
15
reset.yml
15
reset.yml
|
@ -1,17 +1,6 @@
|
||||||
---
|
---
|
||||||
- hosts: localhost
|
- name: Check ansible version
|
||||||
become: no
|
import_playbook: ansible_version.yml
|
||||||
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
|
|
||||||
|
|
||||||
- hosts: bastion[0]
|
- hosts: bastion[0]
|
||||||
gather_facts: False
|
gather_facts: False
|
||||||
|
|
15
scale.yml
15
scale.yml
|
@ -1,17 +1,6 @@
|
||||||
---
|
---
|
||||||
- hosts: localhost
|
- name: Check ansible version
|
||||||
gather_facts: False
|
import_playbook: ansible_version.yml
|
||||||
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
|
|
||||||
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
|
|
|
@ -1,17 +1,6 @@
|
||||||
---
|
---
|
||||||
- hosts: localhost
|
- name: Check ansible version
|
||||||
gather_facts: false
|
import_playbook: ansible_version.yml
|
||||||
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
|
|
||||||
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
|
|
Loading…
Reference in a new issue