List SELinux modules in check mode to avoid errors
List SELinux modules in check mode to avoid errors

Currently in check mode (--check) role fails with error:

The conditional check 'selinux_policy_name not in selinux_modules.stdout'
failed. The error was: error while evaluating conditional
(selinux_policy_name not in selinux_modules.stdout): Unable to look up
a name or access an attribute in template string
({% if selinux_policy_name not in selinux_modules.stdout %} True
{% else %} False {% endif %}).
Make sure your variable name does not contain invalid characters like '-':
argument of type 'StrictUndefined' is not iterable

evrardjp/ansible-keepalived