[root@gitserver tasks]# ls
group_vars host_vars main.retry main.yml
[root@gitserver tasks]# ansible-playbook main.yml
PLAY [localhost] ************************************************************************************************************************************************************************************
TASK [Gathering Facts] ******************************************************************************************************************************************************************************
ok: [localhost]
TASK [prints host_vars] *****************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ntp_server' is undefined\n\nThe error appears to have been in '/home/git/roles/zabbix_agent/tasks/main.yml': line 16, column 6, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n# debug: msg=\"My Company name is {{ my_company }}\"\n - name: prints host_vars\n ^ here\n\nexception type: <class 'ansible.errors.AnsibleUndefinedVariable'>\nexception: 'ntp_server' is undefined"}
to retry, use: --limit @/home/git/roles/zabbix_agent/tasks/main.retry
PLAY RECAP ******************************************************************************************************************************************************************************************
localhost : ok=5 changed=0 unreachable=0 failed=1