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 |
---|---|---|
.. | ||
ec2_elb_instance_setup | Loading commit data... | |
ec2_provision_instances | Loading commit data... | |
prepare_rax_tests/defaults | Loading commit data... | |
prepare_tests/tasks | Loading commit data... | |
prepare_win_tests/tasks | Loading commit data... | |
setup_ec2 | Loading commit data... | |
setup_mysql_db | Loading commit data... | |
setup_postgresql_db | Loading commit data... | |
test_always_run | Loading commit data... | |
test_apt | Loading commit data... | |
test_apt_repository | Loading commit data... | |
test_assemble | Loading commit data... | |
test_async | Loading commit data... | |
test_authorized_key | Loading commit data... | |
test_bad_parsing | Loading commit data... | |
test_become | Loading commit data... | |
test_binary | Loading commit data... | |
test_changed_when | Loading commit data... | |
test_check_mode | Loading commit data... | |
test_command_shell | Loading commit data... | |
test_conditionals | Loading commit data... | |
test_consul_acl/tasks | Loading commit data... | |
test_consul_inventory/tasks | Loading commit data... | |
test_consul_kv/tasks | Loading commit data... | |
test_consul_service/tasks | Loading commit data... | |
test_consul_session/tasks | Loading commit data... | |
test_copy | Loading commit data... | |
test_docker | Loading commit data... | |
test_ec2 | Loading commit data... | |
test_ec2_ami | Loading commit data... | |
test_ec2_asg/tasks | Loading commit data... | |
test_ec2_eip | Loading commit data... | |
test_ec2_elb | Loading commit data... | |
test_ec2_elb_lb | Loading commit data... | |
test_ec2_facts | Loading commit data... | |
test_ec2_group | Loading commit data... | |
test_ec2_key | Loading commit data... | |
test_ec2_tag | Loading commit data... | |
test_ec2_vol | Loading commit data... | |
test_ec2_vpc | Loading commit data... | |
test_embedded_module | Loading commit data... | |
test_facts_d | Loading commit data... | |
test_failed_when/tasks | Loading commit data... | |
test_fetch | Loading commit data... | |
test_file | Loading commit data... | |
test_filters | Loading commit data... | |
test_gce | Loading commit data... | |
test_gce_pd | Loading commit data... | |
test_gem | Loading commit data... | |
test_get_url | Loading commit data... | |
test_git | Loading commit data... | |
test_good_parsing | Loading commit data... | |
test_handlers | Loading commit data... | |
test_handlers_meta | Loading commit data... | |
test_hash_behavior | Loading commit data... | |
test_hg | Loading commit data... | |
test_ignore_errors | Loading commit data... | |
test_includes | Loading commit data... | |
test_iterators | Loading commit data... | |
test_lineinfile | Loading commit data... | |
test_lookups | Loading commit data... | |
test_mysql_db | Loading commit data... | |
test_mysql_user | Loading commit data... | |
test_mysql_variables | Loading commit data... | |
test_ping/tasks | Loading commit data... | |
test_pip | Loading commit data... | |
test_postgresql | Loading commit data... | |
test_rax | Loading commit data... | |
test_rax_cbs | Loading commit data... | |
test_rax_cbs_attachments | Loading commit data... | |
test_rax_cdb | Loading commit data... | |
test_rax_cdb_database | Loading commit data... | |
test_rax_clb | Loading commit data... | |
test_rax_clb_nodes | Loading commit data... | |
test_rax_facts | Loading commit data... | |
test_rax_identity | Loading commit data... | |
test_rax_keypair | Loading commit data... | |
test_rax_meta | Loading commit data... | |
test_rax_network | Loading commit data... | |
test_script | Loading commit data... | |
test_service | Loading commit data... | |
test_stat | Loading commit data... | |
test_su | Loading commit data... | |
test_subversion | Loading commit data... | |
test_sudo | Loading commit data... | |
test_synchronize | Loading commit data... | |
test_template | Loading commit data... | |
test_unarchive | Loading commit data... | |
test_var_blending | Loading commit data... | |
test_var_precedence | Loading commit data... | |
test_var_precedence_dep | Loading commit data... | |
test_var_precedence_inven_override/tasks | Loading commit data... | |
test_var_precedence_role1 | Loading commit data... | |
test_var_precedence_role2 | Loading commit data... | |
test_var_precedence_role3 | Loading commit data... | |
test_win_copy | Loading commit data... | |
test_win_feature | Loading commit data... | |
test_win_fetch/tasks | Loading commit data... | |
test_win_file | Loading commit data... | |
test_win_get_url/tasks | Loading commit data... | |
test_win_msi/tasks | Loading commit data... | |
test_win_ping/tasks | Loading commit data... | |
test_win_raw/tasks | Loading commit data... | |
test_win_script | Loading commit data... | |
test_win_service | Loading commit data... | |
test_win_setup/tasks | Loading commit data... | |
test_win_slurp/tasks | Loading commit data... | |
test_win_stat/tasks | Loading commit data... | |
test_win_template | Loading commit data... | |
test_yum | Loading commit data... |