use end_host for ansible >= 2.8

This commit is contained in:
ahmadali shafiee 2020-03-29 13:51:27 +00:00
parent a6e30dec3b
commit a3bac673f0

View file

@ -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: