Copied from the environment repository's roles and scrubbed for the Collection: galaxy namespace mortis, molecule scenarios call the roles by their FQCN and take their paths from the workflow, README examples use mortis.kamino.* and documentation addresses, repository-local references (issue numbers, ADRs, inventory paths) are dropped. network_interfaces loses its Legacy name guard and the molecule play that tested it: the guard only protected the in-repo rename, and a new consumer never had the old names. mock_roles in .ansible-lint lists both FQCNs. Not verified locally: the molecule scenarios (they run on the kamino-molecule runner in CI) and ansible-test sanity. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
20 lines
699 B
Django/Jinja
20 lines
699 B
Django/Jinja
[Service]
|
|
{#
|
|
Rendering rules (checked in this order):
|
|
- booleans -> yes/no
|
|
- real lists -> space-joined (strings are Jinja sequences too, so
|
|
they must be excluded explicitly, otherwise
|
|
"strict" renders as "s t r i c t")
|
|
- strings/numbers/etc -> rendered as-is
|
|
systemd_hardening_item.value is validated as a mapping in tasks/dropins.yml before rendering.
|
|
#}
|
|
{% for k, v in systemd_hardening_item.value.items() %}
|
|
{% if v is boolean %}
|
|
{{ k }}={{ 'yes' if v else 'no' }}
|
|
{% elif v is iterable and v is not string and v is not mapping %}
|
|
{{ k }}={{ v | join(' ') }}
|
|
{% else %}
|
|
{{ k }}={{ v }}
|
|
{% endif %}
|
|
{% endfor %}
|