mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-08 02:01:31 -07:00
win_acl - fix glob file paths (#53828)
This commit is contained in:
parent
4f9de45785
commit
aba6f5f50d
5 changed files with 12 additions and 10 deletions
|
@ -1,2 +1,2 @@
|
|||
---
|
||||
test_acl_path: '{{ win_output_dir }}/win_acl'
|
||||
test_acl_path: '{{ win_output_dir }}\win_acl .ÅÑŚÌβŁÈ [$!@^&test(;)]'
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
include_tasks: tests.yml
|
||||
|
||||
always:
|
||||
- name: clenaup testing dir
|
||||
- name: cleanup testing dir
|
||||
win_file:
|
||||
path: '{{ test_acl_path }}'
|
||||
state: absent
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
- name: get register cmd that will get ace info
|
||||
set_fact:
|
||||
test_ace_cmd: |
|
||||
$ace_list = (Get-Acl -Path $path).Access | Where-Object { $_.IsInherited -eq $false } | ForEach-Object {
|
||||
$ace_list = (Get-Acl -LiteralPath $path).Access | Where-Object { $_.IsInherited -eq $false } | ForEach-Object {
|
||||
@{
|
||||
rights = $_.FileSystemRights.ToString()
|
||||
type = $_.AccessControlType.ToString()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue