Skip to content
Snippets Groups Projects
Unverified Commit ef7197f9 authored by Max Gautier's avatar Max Gautier Committed by GitHub
Browse files

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.
parent 96483009
No related branches found
No related tags found
No related merge requests found
--- ---
- name: Check Ansible version - name: Check Ansible version
hosts: localhost hosts: all
gather_facts: false gather_facts: false
become: no become: no
run_once: true
vars: vars:
minimal_ansible_version: 2.15.5 # 2.15 versions before 2.15.5 are known to be buggy for kubespray 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 maximal_ansible_version: 2.17.0
ansible_connection: local
tags: always tags: always
tasks: tasks:
- name: "Check {{ minimal_ansible_version }} <= Ansible version < {{ maximal_ansible_version }}" - name: "Check {{ minimal_ansible_version }} <= Ansible version < {{ maximal_ansible_version }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment