From 7ca2f36698a032a34e8c1c6d3ac567d512c1f881 Mon Sep 17 00:00:00 2001 From: jsl6ul <139987629+jsl6ul@users.noreply.github.com> Date: Mon, 15 Apr 2024 09:57:46 -0400 Subject: [PATCH] remove 'to_nice_yaml' filter (#27) * remove 'to_nice_yaml' filter 'to_nice_yaml' don't decrypt vaulted vars and copy the vaulted string as-is. removing this filter decrypt the var as intended. * update templates/local.settings.j2 decrypting the vault chain while preserving to_nice_yaml --- templates/local.settings.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/local.settings.j2 b/templates/local.settings.j2 index 1f3083c..7646eb2 100644 --- a/templates/local.settings.j2 +++ b/templates/local.settings.j2 @@ -1,2 +1,2 @@ # {{ ansible_managed }} -{{ cobbler_settings | to_nice_yaml(indent=2) }} +{{ cobbler_settings | to_json(vault_to_text=True) | from_json | to_nice_yaml }}