You have not defined the variable “host” or set a default value. You could add the host variable to the extra variables field of the template, but in AWX, you usually want the hosts to come from the inventory and limit. If you also use this playbook on the CLI, I recommend adding a default(‘all’) to the hosts field, like this:
hosts: “{{ host | default(‘all’) }}”
That way, on the Ansible CLI, you can set a value to host, but in AWX, the hosts list coles from the result of setting Inventory and Limit.
Same goes for remote_user. If you set it, it will override the credential in AWX. We leave that out in AWX playbooks. But, if you really need to, you could do this:
remote_user: “{{ remote_user | default(omit) }}”
Dave