diff options
author | Toshio Kuratomi <a.badger@gmail.com> | 2018-05-02 23:38:25 +0200 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2018-05-04 02:54:34 +0200 |
commit | 6b159fdb034336241a5375f7300106e049b33e5d (patch) | |
tree | 2dd87f50293691ca1b03b484ff8ecc2352546d8e /test/integration/targets/file | |
parent | Fix for file module with symlinks to nonexistent target (#39635) (diff) | |
download | ansible-6b159fdb034336241a5375f7300106e049b33e5d.tar.xz ansible-6b159fdb034336241a5375f7300106e049b33e5d.zip |
Fix for file module with recursive permission setting and broken symlinks
There was a traceback when setting permissions on a directory tree when
there were broken symlinks inside of the tree and follow=true. chmod -R
ignores broken symlinks inside of the tree so we've fixed the file
module to do the same.
Fixes #39456
Diffstat (limited to 'test/integration/targets/file')
-rw-r--r-- | test/integration/targets/file/tasks/main.yml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/integration/targets/file/tasks/main.yml b/test/integration/targets/file/tasks/main.yml index 4db6637e74..4ce5db20b1 100644 --- a/test/integration/targets/file/tasks/main.yml +++ b/test/integration/targets/file/tasks/main.yml @@ -636,6 +636,9 @@ - name: create a symlink to the directory file: path={{output_dir}}/test_follow_rec/test_link_dir state=link src="../test_follow_rec_target_dir" +- name: create a symlink to a nonexistent file + file: path={{output_dir}}/test_follow_rec/nonexistent state=link src=does_not_exist force=True + - name: try to change permissions without following symlinks file: path={{output_dir}}/test_follow_rec follow=False mode="a-x" recurse=True |