mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-07 01:17:39 -02:30
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:
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
|
||||
Reference in New Issue
Block a user