You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test
willthames 377bc31311 Prevent premature substitution of variables into tasks
As documented in #2623, early variable substitution causes when_
tests to fail and possibly other side effects.

I can see the reason for this early substitution, likely introduced
in 1dfe60a6, to allow many playbook parameters to be templated.
This is a valid goal, but the recursive nature of the utils.template
function means that it goes too far.

At this point removing tasks from the list of parameters to be
substituted seems sufficient to make my tests pass. It may be the
case that other parameters should be excluded, but I suspect not.

Adding a test case. I would prefer to analyse not just the aggregate
statistics but also whether the results are as expected - I can't
see an easy way to do that with the available callbacks at present.
12 years ago
..
assemble.d
inventory_dir
test_playbook_vars
CentOS.yml
TestConstants.py
TestFilters.py
TestInventory.py
TestPlayBook.py Prevent premature substitution of variables into tasks 12 years ago
TestRunner.py
TestUtils.py
ansible.cfg
ansible_hosts
apt_key.gpg
common_vars.yml
complex_hosts
cron_test.yml
default_os.yml
hosts_list.yml
inventory_api.py
jinja2_overrides.tpl
large_range
lookup_plugins.yml
playbook-included.yml
playbook-includer.yml
playbook-when.yml Prevent premature substitution of variables into tasks 12 years ago
playbook1.yml
results_list.yml
rocannon.txt
sample.j2
simple_hosts
task-included.yml
task-includer.yml
template-basic
template-whitespace
world