mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
Merge branch 'file_fixes_clean' of https://github.com/bcoca/ansible into bcoca-file_fixes_clean
This commit is contained in:
commit
5d8c9d3f0f
3 changed files with 112 additions and 115 deletions
|
@ -164,5 +164,24 @@
|
|||
that:
|
||||
- "file11_result.uid == 1235"
|
||||
|
||||
- name: fail to create soft link to non existant file
|
||||
file: src=/noneexistant dest={{output_dir}}/soft2.txt state=link force=no
|
||||
register: file12_result
|
||||
ignore_errors: true
|
||||
|
||||
- name: verify that link was not created
|
||||
assert:
|
||||
that:
|
||||
- "file12_result.failed == true"
|
||||
|
||||
- name: force creation soft link to non existant
|
||||
file: src=/noneexistant dest={{output_dir}}/soft2.txt state=link force=yes
|
||||
register: file13_result
|
||||
|
||||
- name: verify that link was created
|
||||
assert:
|
||||
that:
|
||||
- "file13_result.changed == true"
|
||||
|
||||
- name: remote directory foobar
|
||||
file: path={{output_dir}}/foobar state=absent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue