Note
This plugin is part of the ansible.windows collection.
To install it use: ansible-galaxy collection install ansible.windows
.
To use it in a playbook, specify: ansible.windows.win_acl_inheritance
.
Parameter | Choices/Defaults | Comments |
---|---|---|
path path / required | Path to be used for changing inheritance | |
reorganize boolean |
| For P(state) = absent, indicates if the inherited ACE's should be copied from the parent directory. This is necessary (in combination with removal) for a simple ACL instead of using multiple ACE deny entries. For P(state) = present, indicates if the inherited ACE's should be deduplicated compared to the parent directory. This removes complexity of the ACL structure. |
state string |
| Specify whether to enable present or disable absent ACL inheritance. |
See also
The official documentation on the ansible.windows.win_acl module.
The official documentation on the ansible.windows.win_file module.
The official documentation on the ansible.windows.win_stat module.
- name: Disable inherited ACE's ansible.windows.win_acl_inheritance: path: C:\apache state: absent - name: Disable and copy inherited ACE's ansible.windows.win_acl_inheritance: path: C:\apache state: absent reorganize: yes - name: Enable and remove dedicated ACE's ansible.windows.win_acl_inheritance: path: C:\apache state: present reorganize: yes
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/ansible/windows/win_acl_inheritance_module.html