file

Collection: builtin

Full Name: parallax.builtin.file

Aliases: ansible.builtin.file, file

Synopsis

Manage file

Parameters

NameTypeRequiredDefaultDescription
pathstringyesPath to the file or directory
statestringfileState of the file (absent, directory, touch)
modestringThe permission mode of the file or directory
ownerstringName of the user that should own the file
groupstringName of the group that should own the file

Example

- name: Example file task
  file:
    path: <your_path>