From 8d92974d56abc190a2bca8cc8ed720c8fe8ff993 Mon Sep 17 00:00:00 2001 From: Franciszek Korta Date: Mon, 5 Dec 2022 19:43:37 +0000 Subject: [PATCH] Add pre_task veryfing minimal ansible version --- nas.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nas.yml b/nas.yml index b71dcd3902..e7a8db9122 100644 --- a/nas.yml +++ b/nas.yml @@ -1,6 +1,12 @@ --- - hosts: all + pre_tasks: + - name: Verify Ansible meets ansible-nas version requirements. + assert: + that: "ansible_version.full is version_compare('2.10', '>=')" + msg: "update Ansible to at least 2.10 to install ansible-nas" + roles: ### ### Requirements