Thanks Matt, I did read that but didn't see how it would effect my code.
The vars are include_vars (yaml) and interspersed with facts such as
ansible_distribution_major_version.
example:
managed_yum_repos:
"rhel-{{ ansible_distribution_major_version }}-server-rpms":
description: "Red Hat Enterprise Linux {{
ansible_distribution_major_version }} Server (RPMs)"
baseurl: ....
I have a workaround to use {{ lookup('flattened',[my_packed_variable]) }},
this lets me run with the identical vars on both versions for now.
On Friday, 20 December 2019 15:30:55 UTC, Matt Martz wrote:
>
> 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]
> <javascript:>> 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] <javascript:>.
>> 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/ef6c123e-6ed5-41cf-a9d2-195fb6bb4955%40googlegroups.com.