Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

update ansible version check #1225

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions roles/check_config_static/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@

- name: Check ansible version
fail:
msg: "Stop if ansible version is too low, make sure that the Ansible version is 2.4.2 or later, otherwise a compatibility issue occurs. Current ansible version is {{ ansible_version.full }}"
when: ansible_version.full | version_compare('2.4.2', '<')
msg: "Stop if ansible version is too low, make sure that the Ansible version is 2.5.0 or later, otherwise a compatibility issue occurs. Current ansible version is {{ ansible_version.full }}"
when: ansible_version.full | version_compare('2.5.0', '<')

- name: Check if jmespath installed
shell: pip list | grep -iw jmespath | wc -l
Expand Down