From a3bac673f0618fb4eea3f9ca508d3d5571dceabf Mon Sep 17 00:00:00 2001 From: ahmadali shafiee Date: Sun, 29 Mar 2020 13:51:27 +0000 Subject: [PATCH] use end_host for ansible >= 2.8 --- tasks/install.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/install.yml b/tasks/install.yml index 9a37548..b90b4f7 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -3,6 +3,12 @@ - name: OS is supported assert: that: __sshd_os_supported|bool + when: ansible_version.full is version_compare('2.8', '<') + +- name: OS is supported + meta: end_host + when: + - not __sshd_os_supported|bool - name: Install ssh packages package: