to_yaml
to_yaml(
self ,
path = None,
)-> ‘str’
Serialize this inventory to YAML, optionally writing to a path.
A field still holding its default is left out, so the document states what the inventory says rather than every field it has; what is written reloads equal to this inventory.