This change is similar to https://github.com/ansible/ansible/pull/10465 It extends the logic there to also support none types. Right now if you have a '!!null' in yaml, and that var gets passed around, it will get converted to a string. eg. defaults/main.yml ``` ENABLE_AWESOME_FEATURE: !!null # Yaml Null OTHER_CONFIG: secret1: "so_secret" secret2: "even_more_secret" CONFIG: hostname: "some_hostname" features: awesame_feature: "{{ ENABLE_AWESOME_FEATURE}}" secrets: "{{ OTHER_CONFIG }}" ``` If you output `CONFIG` to json or yaml, the feature flag would get represented in the output as a string instead of as a null, but secrets would get represented as a dictionary. This is a mis-match in behaviour where some "types" are retained and others are not. This change should fix the issue. I also updated the template test to test for this and made the changes to v2. Added a changelog entry.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
group_vars | Loading commit data... | |
host_vars | Loading commit data... | |
roles | Loading commit data... | |
vars | Loading commit data... | |
Makefile | Loading commit data... | |
README.md | Loading commit data... | |
all.yml | Loading commit data... | |
amazon.yml | Loading commit data... | |
bad_parsing.yml | Loading commit data... | |
check_mode.yml | Loading commit data... | |
cleanup_ec2.py | Loading commit data... | |
cleanup_gce.py | Loading commit data... | |
cleanup_rax.py | Loading commit data... | |
consul.yml | Loading commit data... | |
consul_inventory.yml | Loading commit data... | |
consul_running.py | Loading commit data... | |
credentials.template | Loading commit data... | |
destructive.yml | Loading commit data... | |
galaxy_playbook.yml | Loading commit data... | |
galaxy_roles.yml | Loading commit data... | |
galaxy_rolesfile | Loading commit data... | |
gce.yml | Loading commit data... | |
gce_credentials.py | Loading commit data... | |
good_parsing.yml | Loading commit data... | |
integration_config.yml | Loading commit data... | |
inventory | Loading commit data... | |
inventory.group_by | Loading commit data... | |
inventory.handlers | Loading commit data... | |
inventory.winrm.template | Loading commit data... | |
non_destructive.yml | Loading commit data... | |
rackspace.yml | Loading commit data... | |
setup_gce.py | Loading commit data... | |
test_delegate_to.yml | Loading commit data... | |
test_group_by.yml | Loading commit data... | |
test_handlers.yml | Loading commit data... | |
test_hash.yml | Loading commit data... | |
test_includes.yml | Loading commit data... | |
test_includes2.yml | Loading commit data... | |
test_setup.yml | Loading commit data... | |
test_tags.yml | Loading commit data... | |
test_templating_settings.yml | Loading commit data... | |
test_var_precedence.yml | Loading commit data... | |
test_vault.yml | Loading commit data... | |
test_winrm.yml | Loading commit data... | |
unicode.yml | Loading commit data... | |
vars_file.yml | Loading commit data... | |
vault-password | Loading commit data... |