I have the following task in a role:
command: >-
passwd -
{%- if ansible_system == ‘SunOS’ %}N
{%- elif ansible_system == ‘Linux’ %}l
{%- else %}
{{ “Unknown OS”/0 }}
{%- endif -%}
How to throw an error for the unknown ansible_system from within the role?