diff --git a/lib/ansible/playbook/base.py b/lib/ansible/playbook/base.py index 6e0e3b5738..6b6fdf3fae 100644 --- a/lib/ansible/playbook/base.py +++ b/lib/ansible/playbook/base.py @@ -300,7 +300,7 @@ class Base: # if this evaluated to the omit value, set the value back to # the default specified in the FieldAttribute and move on if omit_value is not None and value == omit_value: - value = attribute.default + setattr(self, name, attribute.default) continue # and make sure the attribute is of the type it should be