Debian Codegraph @

test/integration/targets/import-role-tasks/import.yml

raw
1 - hosts: localhost
2 gather_facts: no
3 tasks:
4 - name: create an ansible variable which is only available after load
5 set_fact:
6 an_ansible_var: something
7
8 - name: verify the environment keyword on import_role is not resolved during load
9 environment:
10 AN_ENV_VAR: "{{ an_ansible_var }}" # this should be resolved during execution, not load
11 import_role:
12 name: test_environment
13
14 - name: verify the environment keyword on import_tasks is not resolved during load
15 environment:
16 AN_ENV_VAR: "{{ an_ansible_var }}" # this should be resolved during execution, not load
17 import_tasks: roles/test_environment/tasks/main.yml