-
|
At some point ansible started marking variables from external sources as __ansible_unsafe. I use templated values in my config contexts pretty extensively, so this makes netbox basically useless for inventory now. Is there any way to work around this so values are templated correctly? For now I just pinned ansible to 11.11.0, they made the change in 12.0.0 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
|
Can you share a little more detail about this? Are you saying that your config contexts, themselves contain Jinja2 template placeholders? Can you share a config context for us to examine? |
Beta Was this translation helpful? Give feedback.
-
|
@etrombly I want to give you an update, #1411 is tracking this now, thanks to @efazenda for bringing up how to mark things as safe for templating, so that this can now be possible. I think as long as we have some sort of way for the user to opt-in to the behavior, I am ok with merging code that enables it. I just want to keep a safe default of not marking it as safe for templating, to preserve the principal of least surprise |
Beta Was this translation helpful? Give feedback.
I understand your frustration but this change was required due to https://nvd.nist.gov/vuln/detail/CVE-2023-5764 and the mitigation that the Ansible core team decided upon, makes it where your method of managing this, is no longer possible the way you had previously used in the past. I have attempted to provide some solutions to help mitigate this change and allow you to proceed forward, but at the end of the day there's not much else I can offer you. Sorry.