mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-29 03:30:22 -07:00
Cleanup of uid bits.
This commit is contained in:
parent
10e116ea78
commit
ea21e5b5dd
1 changed files with 3 additions and 3 deletions
|
@ -63,7 +63,7 @@
|
||||||
- "file4_result.mode == '0600'"
|
- "file4_result.mode == '0600'"
|
||||||
|
|
||||||
- name: change ownership and group
|
- name: change ownership and group
|
||||||
file: path={{output_dir}}/baz.txt owner=1000 group=1000
|
file: path={{output_dir}}/baz.txt owner=1234 group=1234
|
||||||
|
|
||||||
- name: create soft link to file
|
- name: create soft link to file
|
||||||
file: src={{output_file}} dest={{output_dir}}/soft.txt state=link
|
file: src={{output_file}} dest={{output_dir}}/soft.txt state=link
|
||||||
|
@ -122,7 +122,7 @@
|
||||||
copy: src=foobar dest={{output_dir}}
|
copy: src=foobar dest={{output_dir}}
|
||||||
|
|
||||||
- name: Change ownership of a directory with recurse=no(default)
|
- name: Change ownership of a directory with recurse=no(default)
|
||||||
file: path={{output_dir}}/foobar owner=1000
|
file: path={{output_dir}}/foobar owner=1234
|
||||||
|
|
||||||
- name: verify that the permission of the directory was set
|
- name: verify that the permission of the directory was set
|
||||||
file: path={{output_dir}}/foobar state=directory
|
file: path={{output_dir}}/foobar state=directory
|
||||||
|
@ -137,7 +137,7 @@
|
||||||
file: path={{output_dir}}/foobar/fileA state=file
|
file: path={{output_dir}}/foobar/fileA state=file
|
||||||
register: file9_result
|
register: file9_result
|
||||||
|
|
||||||
- name: assert the file owner has not changed to 1000
|
- name: assert the file owner has not changed to 1234
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- "file9_result.uid != 1234"
|
- "file9_result.uid != 1234"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue