Documentation

win_owner - Set owner

New in version 2.1.

Synopsis

  • Set owner of files or directories

Options

parameter required default choices comments
path
yes
Path to be used for changing owner
recurse
no
  • False
  • True
Indicates if the owner should be changed recursively
user
yes
Name to be used for changing owner

Examples

- name: Change owner of Path
  win_owner:
    path: C:\apache
    user: apache
    recurse: True

- name: Set the owner of root directory
  win_owner:
    path: C:\apache
    user: SYSTEM
    recurse: False

Status

This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.

Support

This module is maintained by those with core commit privileges

For more information on what this means please read Module Support

For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Helping Testing PRs and Developing Modules.