ansible / ansible.builtin / v2.9.27 / module / win_owner Set owner | "added in version" 2.1 of ansible.builtin" Authors: Hans-Joachim Kliemeck (@h0nIg) preview | supported by coreansible.builtin.win_owner (v2.9.27) — module
pip
Install with pip install ansible==2.9.27
Set owner of files or directories.
- name: Change owner of path win_owner: path: C:\apache user: apache recurse: yes
- name: Set the owner of root directory win_owner: path: C:\apache user: SYSTEM recurse: no
path: description: - Path to be used for changing owner. required: true type: path user: description: - Name to be used for changing owner. required: true type: str recurse: default: false description: - Indicates if the owner should be changed recursively. type: bool