ansible / ansible.windows / 2.3.0 / module / win_owner Set owner Authors: Hans-Joachim Kliemeck (@h0nIg)ansible.windows.win_owner (2.3.0) — module
Install with ansible-galaxy collection install ansible.windows:==2.3.0
collections: - name: ansible.windows version: 2.3.0
Set owner of files or directories.
- name: Change owner of path ansible.windows.win_owner: path: C:\apache user: apache recurse: true
- name: Set the owner of root directory ansible.windows.win_owner: path: C:\apache user: SYSTEM recurse: false
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