.. _ansible.windows.win_owner_module:
*************************
ansible.windows.win_owner
*************************
**Set owner**
.. contents::
:local:
:depth: 1
Synopsis
--------
- Set owner of files or directories.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
path
path
/ required
|
|
Path to be used for changing owner.
|
|
recurse
boolean
|
|
Indicates if the owner should be changed recursively.
|
|
user
string
/ required
|
|
Name to be used for changing owner.
|
See Also
--------
.. 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.
Examples
--------
.. code-block:: yaml
- name: Change owner of path
ansible.windows.win_owner:
path: C:\apache
user: apache
recurse: yes
- name: Set the owner of root directory
ansible.windows.win_owner:
path: C:\apache
user: SYSTEM
recurse: no
Status
------
Authors
~~~~~~~
- Hans-Joachim Kliemeck (@h0nIg)