Change ACL inheritance
- Change ACL (Access Control List) inheritance and optionally copy inherited ACE's (Access Control Entry) to dedicated ACE's or vice versa.
.. seealso:: :ref:`ansible.windows.win_acl_module` The official documentation on the **ansible.windows.win_acl** module. :ref:`ansible.windows.win_file_module` The official documentation on the **ansible.windows.win_file** module. :ref:`ansible.windows.win_stat_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
- Hans-Joachim Kliemeck (@h0nIg)