mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
correct, cleanup & simplify dwim stack (#25956)
* correct, cleanup & simplify dwim stack latlh chIS logh HeS qar wej chel laD better errors update find_file to new exception * addressed latest comments * test should not use realpath as it follows symlink this fails when on OS X as /var is now a symlink to /private/var but first_found was not supposed to follow symlinks
This commit is contained in:
parent
272f5fd03a
commit
8f758204cf
7 changed files with 81 additions and 52 deletions
|
@ -329,7 +329,7 @@
|
|||
src: false-file
|
||||
dest: "{{win_output_dir}}\\fale-file.txt"
|
||||
register: fail_missing_source
|
||||
failed_when: fail_missing_source.msg != "Unable to find 'false-file' in expected paths."
|
||||
failed_when: not (fail_missing_source|failed)
|
||||
|
||||
- name: fail when copying remote src file when src doesn't exist
|
||||
win_copy:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue