Debian Codegraph @

examples/roles/template_lookup/tasks/main.yml

raw
1 ---
2 # Place tasks in a block as templates are not rendered for top-level tasks
3 # in roles. Specifically, in `play_children()` of src/ansiblelint/utils.py,
4 # tasks in blocks go through `delegate_map['block']`, while top-level tasks
5 # in a role is not handled by `delegate_map`.
6 # Ref: https://github.com/ansible/ansible-lint/blob/v5.0.12/src/ansiblelint/utils.py#L305
7 - block:
8 - name: Bug demo
9 ansible.builtin.debug:
10 msg: '{{ lookup("file", "a_file") }}'