mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
fix: ensure than all item of a list of excluded files aren't checked (#45122)
* fix: ensure than list of excluded files aren't checked * test: exclude a list of files
This commit is contained in:
@@ -225,11 +225,13 @@
|
||||
- zip
|
||||
- tar
|
||||
|
||||
- name: Unpack archive file excluding glob files.
|
||||
- name: Unpack archive file excluding regular and glob files.
|
||||
unarchive:
|
||||
src: "{{ output_dir }}/unarchive-00.{{item}}"
|
||||
dest: "{{ output_dir }}/exclude-{{item}}"
|
||||
exclude: "exclude/exclude-*.txt"
|
||||
exclude:
|
||||
- "exclude/exclude-*.txt"
|
||||
- "other/exclude-1.ext"
|
||||
with_items:
|
||||
- zip
|
||||
- tar
|
||||
@@ -245,6 +247,7 @@
|
||||
assert:
|
||||
that:
|
||||
- "'exclude/exclude-1.txt' not in item.stdout"
|
||||
- "'other/exclude-1.ext' not in item.stdout"
|
||||
with_items:
|
||||
- "{{ unarchive00.results }}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user