win_acl - fix glob file paths (#53828)

This commit is contained in:
Jordan Borean 2019-03-15 14:57:41 +10:00 committed by GitHub
parent 4f9de45785
commit aba6f5f50d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 10 deletions

View file

@ -1,2 +1,2 @@
---
test_acl_path: '{{ win_output_dir }}/win_acl'
test_acl_path: '{{ win_output_dir }}\win_acl .ÅÑŚÌβŁÈ [$!@^&test(;)]'

View file

@ -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

View file

@ -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()