Add Technical_Decomp_Manifest

Miguel Jacq 2025-12-27 20:56:42 -06:00
parent 598ab639e9
commit 8b54d60765

@ -0,0 +1,33 @@
## enroll/manifest.py
### _IndentDumper (inner class inside _yaml_dump_mapping)
#### Purpose: makes PyYAML output indentation match stricter linters/Ansible expectations.
#### What it subclasses:
yaml.SafeDumper
#### Override:
- increase_indent(self, flow=False, indentless=False)
- it forces indentless=False when calling the superclass, which prevents PyYAMLs common behavior of emitting:
```
key:
- item
```
- and instead prefers:
```
key:
- item
```
#### Lifecycle / where its used:
Only used when PyYAML is available.
manifest uses _yaml_dump_mapping() for:
- role defaults (defaults/main.yml)
- host_vars role data (inventory/host_vars/...)
- ensuring stable formatting.