From 3ced391fab5ac87d8aef95cc39693c51fe2c727c Mon Sep 17 00:00:00 2001 From: Pat Riehecky <3534830+jcpunk@users.noreply.github.com> Date: Tue, 30 May 2023 13:43:49 -0500 Subject: [PATCH] Print the found version when it is incorrect (#10109) Signed-off-by: Pat Riehecky --- playbooks/ansible_version.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/ansible_version.yml b/playbooks/ansible_version.yml index 151131f8b..321ce228d 100644 --- a/playbooks/ansible_version.yml +++ b/playbooks/ansible_version.yml @@ -10,7 +10,7 @@ tasks: - name: "Check {{ minimal_ansible_version }} <= Ansible version < {{ maximal_ansible_version }}" assert: - msg: "Ansible must be between {{ minimal_ansible_version }} and {{ maximal_ansible_version }} exclusive" + msg: "Ansible must be between {{ minimal_ansible_version }} and {{ maximal_ansible_version }} exclusive - you have {{ ansible_version.string }}" that: - ansible_version.string is version(minimal_ansible_version, ">=") - ansible_version.string is version(maximal_ansible_version, "<")