Ansible - Exit (fail)
Fail Task
- name: 'This installation script knows only gateway.'
fail:
msg: "This host {{ inventory_hostname }} is not in a 'gateway' group, this script can not still install a worker."
when: "'gateway' not in group_names"