Debian Codegraph @

test/integration/targets/lookup_fileglob/issue72873/test.yml

raw
1 - hosts: localhost
2 connection: local
3 gather_facts: false
4 vars:
5 dir: files
6 tasks:
7 - file: path='{{ dir }}' state=directory
8
9 - file: path='setvars.bat' state=touch # in current directory!
10
11 - file: path='{{ dir }}/{{ item }}' state=touch
12 loop:
13 - json.c
14 - strlcpy.c
15 - base64.c
16 - json.h
17 - base64.h
18 - strlcpy.h
19 - jo.c
20
21 - name: Get working order results and sort them
22 set_fact:
23 working: '{{ query("fileglob", "setvars.bat", dir ~ "/*.[ch]") | sort }}'
24
25 - name: Get broken order results and sort them
26 set_fact:
27 broken: '{{ query("fileglob", dir ~ "/*.[ch]", "setvars.bat") | sort }}'
28
29 - assert:
30 that:
31 - working == broken