It is in the porting guide at:
https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_2.9.html#loops

However, that entry specifically targeted info about loops.  But the change
can affect more uses of templating.

Where is `include_this_please` coming from?  Is it a single vault encrypted
value?

Effectively, we improved the "unsafe" variable system, and single vaulted
values are unsafe, and should never be allowed to be templated.  So when
they are involved in templating data, it prevents templating from happening.

On Fri, Dec 20, 2019 at 9:00 AM Stephen Maher <[email protected]> wrote:

> Hi,
>
>
> We have some plays that work ok in ansible <2.9, they are used to generate
> various repositories based on facts and they do not appear to work any
> longer after ansible 2.9 update - I have rolled back just the ansible
> package and its working again.
>
>
>
> I've read the release notes and I'm can't see any thing specific regarding
> this change. Has anyone else seen the same behaviour?
>
>
> Cheers.
>
>
>
>
>
> vars.yml
>
> ----------------------------------------------------------
>
> test:
>
>   "test_{{ include_this_please }}":
>
>     testing: true
>
>     included_var: "{{ include_this_please }}"
>
>
>
> 2.9 ansible
>
>
> PLAY [localhost]
> *****************************************************************************************************************************************************************************************
>
>
> TASK [include_vars]
> **************************************************************************************************************************************************************************************
>
> ok: [localhost]
>
>
> TASK [debug]
> *********************************************************************************************************************************************************************************************
>
> ok: [localhost] => {
>
>     "test": {
>
>         "test_{{ include_this_please }}": {
>
>             "included_var": "included",
>
>             "testing": true
>
>         }
>
>     }
>
> }
>
>
>
> 2.8 ansible
>
>
>
> PLAY [localhost]
> *****************************************************************************************************************************************************************************************
>
>
> TASK [include_vars]
> **************************************************************************************************************************************************************************************
>
> ok: [localhost]
>
>
> TASK [debug]
> *********************************************************************************************************************************************************************************************
>
> ok: [localhost] => {
>
>     "test": {
>
>         "test_included": {
>
>             "included_var": "included",
>
>             "testing": true
>
>         }
>
>     }
>
> }
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/a69cc258-5a88-45fb-8842-418e30599261%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/a69cc258-5a88-45fb-8842-418e30599261%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Matt Martz
@sivel
sivel.net

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAD8N0v9Rh90NHsqQO70DNy%2BhdagSHiK8v3b78SZzaTZn%3DbSfyQ%40mail.gmail.com.

Reply via email to