mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
add test for template, file, and copy with hardlinks
This commit is contained in:
parent
ecfa7f696d
commit
2b14fdbce3
2 changed files with 56 additions and 0 deletions
|
@ -135,6 +135,22 @@
|
|||
that:
|
||||
- "file6_touch_result.changed == true"
|
||||
|
||||
- name: stat1
|
||||
stat: path={{output_file}}
|
||||
register: hlstat1
|
||||
|
||||
- name: stat2
|
||||
stat: path={{output_dir}}/hard.txt
|
||||
register: hlstat2
|
||||
|
||||
- name: verify that hard link was made
|
||||
assert:
|
||||
that:
|
||||
- "hlstat1.stat.inode == hlstat2.stat.inode"
|
||||
|
||||
- name: create hard link to file 2
|
||||
file: src={{output_file}} dest={{output_dir}}/hard.txt state=hard
|
||||
|
||||
- name: create a directory
|
||||
file: path={{output_dir}}/foobar state=directory
|
||||
register: file7_result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue