summaryrefslogtreecommitdiff
path: root/test/integration/targets/plugin_loader/override/filters.yml
blob: 569a4479ef1489ea471858c36ae487c8f56c2f86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- hosts: testhost
  gather_facts: false
  tasks:
    - name: ensure local 'flag' filter works, 'flatten' is overridden and 'ternary' is still from core
      assert:
         that:
             - a|flag == 'flagged'
             - a|flatten != [1, 2, 3, 4, 5]
             - a|flatten == "flagged"
             - a|ternary('yes', 'no') == 'yes'
      vars:
        a:
         - 1
         - 2
         - [3, 4, 5]