summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/pass-loop-var-prefix.yml
blob: 8f3339936dd1d4fe3b5205378bc7d120f65fae89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
- hosts: localhost
  tasks:
    # validate that we did not trigger loop-var-prefix on playbooks
    - name: That should pass
      ansible.builtin.debug:
        var: item
      loop:
        - foo
        - bar
    - name: A block
      block:
        - name: That should also pass
          ansible.builtin.debug:
            var: item
          loop:
            - apples
            - oranges