stat
Collection: builtin
Full Name: parallax.builtin.stat
Aliases: ansible.builtin.stat, stat
Synopsis
Manage stat
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| path | string | yes | The full path of the file/directory to get facts about | |
| follow | bool | false | Whether to follow symbolic links | |
| get_checksum | bool | true | Whether to calculate checksum for files | |
| checksum_algorithm | string | sha1 | Algorithm to use for checksum | |
| get_mime | bool | true | Use file magic and return data about the nature of the file | |
| get_attributes | bool | true | Get file attributes using lsattr tool |
Example
- name: Example stat task
stat:
path: <your_path>