Browse Source

Use run_once for checking ansible version instead of localhost (#10908)

The `assert` module does not connect to the host anyway, and this avoids
skipping the assert when running with --limit.
pull/10910/head
Max Gautier 9 months ago
committed by GitHub
parent
commit
ef7197f925
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions
  1. 4
      playbooks/ansible_version.yml

4
playbooks/ansible_version.yml

@ -1,12 +1,12 @@
---
- name: Check Ansible version
hosts: localhost
hosts: all
gather_facts: false
become: no
run_once: true
vars:
minimal_ansible_version: 2.15.5 # 2.15 versions before 2.15.5 are known to be buggy for kubespray
maximal_ansible_version: 2.17.0
ansible_connection: local
tags: always
tasks:
- name: "Check {{ minimal_ansible_version }} <= Ansible version < {{ maximal_ansible_version }}"

Loading…
Cancel
Save