ansible / ansible.builtin / v2.7.16 / 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.7.16) — module
pip
Install with pip install ansible==2.7.16
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 recurse: default: 'no' description: - Indicates if the owner should be changed recursively type: bool