summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/plugin_loader/override/filters.yml
blob: e51ab4e95b11182b142e5e2df890780c6fa9fdba (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 overriden 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]