mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
standardise the powershell FileUtils (#34969)
This commit is contained in:
parent
944ae47701
commit
6f9f337a67
8 changed files with 86 additions and 73 deletions
|
@ -107,7 +107,7 @@
|
|||
name: '{{win_stat_user}}'
|
||||
state: absent
|
||||
|
||||
- name: ensure testy user profile is deleted
|
||||
- name: ensure test user profile is deleted
|
||||
win_shell: rmdir /S /Q {{profile_dir_out.stdout_lines[0]}}
|
||||
args:
|
||||
executable: cmd.exe
|
||||
|
|
|
@ -196,7 +196,7 @@
|
|||
- stat_directory.stat.nlink == 1
|
||||
- stat_directory.stat.owner == 'BUILTIN\Administrators'
|
||||
- stat_directory.stat.path == win_stat_dir + '\\nested'
|
||||
- stat_directory.stat.size == 21
|
||||
- stat_directory.stat.size == 24
|
||||
|
||||
- name: test win_stat on empty directory
|
||||
win_stat:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue