mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-29 09:21:43 -07:00
* Adding exclusion_patterns option
* Adding changelog fragment and Python 2.6 compatability
* Minor refactoring for readability
* Removing unneccessary conditional
* Applying initial review suggestions
* Adding missed review suggestion
(cherry picked from commit b6c0cc0b61
)
Co-authored-by: Ajpantuso <ajpantuso@gmail.com>
This commit is contained in:
parent
6590f5e082
commit
e74ea7c8b8
3 changed files with 100 additions and 20 deletions
|
@ -363,6 +363,19 @@
|
|||
- name: remove nonascii test
|
||||
file: path="{{ output_dir }}/test-archive-nonascii-くらとみ.zip" state=absent
|
||||
|
||||
- name: Test exclusion_patterns option
|
||||
archive:
|
||||
path: "{{ output_dir }}/*.txt"
|
||||
dest: "{{ output_dir }}/test-archive-exclustion-patterns.tgz"
|
||||
exclusion_patterns: b?r.*
|
||||
register: exclusion_patterns_result
|
||||
|
||||
- name: Assert that exclusion_patterns only archives included files
|
||||
assert:
|
||||
that:
|
||||
- exclusion_patterns_result is changed
|
||||
- "'bar.txt' not in exclusion_patterns_result.archived"
|
||||
|
||||
- name: Remove backports.lzma if previously installed (pip)
|
||||
pip: name=backports.lzma state=absent
|
||||
when: backports_lzma_pip is changed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue