Merge "iscsi: Use assert on checks for readability"

This commit is contained in:
Zuul 2023-03-12 13:50:01 +00:00 committed by Gerrit Code Review
commit 76268b7221

View File

@ -27,9 +27,9 @@
- iscsi_services.iscsid.enabled | bool
- name: Check supported platforms for tgtd
fail:
msg:
The SCSI target daemon tgtd is not supported on CentOS/RHEL 8 and later
assert:
that: ansible_facts.os_family != 'RedHat'
fail_msg: >
The SCSI target daemon tgtd is not supported on CentOS/RHEL
when:
- ansible_facts.os_family == 'RedHat'
- enable_tgtd | bool