Details
-
Improvement
-
Resolution: Done
-
Major
-
None
-
None
Description
self = Windows - Stop TestServer templar = <ansible.template.Templar object at 0x7fb4d61dac18> def post_validate(self, templar): ''' we can't tell that everything is of the right type until we have all the variables. Run basic types (from isa) as well as any post_validate<foo> functions. ''' # save the omit value for later checking omit_value = templar._available_variables.get('omit') for (name, attribute) in iteritems(self._valid_attrs): if getattr(self, name) is None: if not attribute.required: continue else: > raise AnsibleParserError("the field '%s' is required but was not set" % name) E ansible.errors.AnsibleParserError: the field 'hosts' is required but was not set venv/lib/python3.6/site-packages/ansible/playbook/base.py:344: AnsibleParserError