mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-09 14:50:02 -07:00
fetch: set fail_on_missing: True as default as per docs (#36469)
* fetch: set fail_on_missing: True as default as per docs * Updated docs for fetch to say behaviour was changed in 2.5 and updated tests
This commit is contained in:
parent
d5858bbcbe
commit
df8a5d7a4f
4 changed files with 30 additions and 6 deletions
|
@ -77,6 +77,18 @@
|
|||
- "fetch_missing.msg"
|
||||
- "fetch_missing is not changed"
|
||||
|
||||
- name: attempt to fetch a non-existent file - fail on missing implicit
|
||||
fetch: src={{ output_dir }}/doesnotexist dest={{ output_dir }}/fetched
|
||||
register: fetch_missing_implicit
|
||||
ignore_errors: true
|
||||
|
||||
- name: check fetch missing with failure with implicit fail
|
||||
assert:
|
||||
that:
|
||||
- "fetch_missing_implicit is failed"
|
||||
- "fetch_missing_implicit.msg"
|
||||
- "fetch_missing_implicit is not changed"
|
||||
|
||||
- name: attempt to fetch a directory - should not fail but return a message
|
||||
fetch: src={{ output_dir }} dest={{ output_dir }}/somedir fail_on_missing=False
|
||||
register: fetch_dir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue