community.general.btrfs_info module – Query btrfs filesystem info
Note
This module is part of the community.general collection (version 10.0.1).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.btrfs_info
.
New in community.general 6.6.0
Synopsis
Query status of available btrfs filesystems, including uuid, label, subvolumes and mountpoints.
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: full This action does not modify state. |
Can run in |
|
Support: N/A This action does not modify state. |
Will return details on what has changed (or possibly needs changing in |
Examples
- name: Query information about mounted btrfs filesystems
community.general.btrfs_info:
register: my_btrfs_info
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Summaries of the current state for all btrfs filesystems found on the target host. Returned: success |
|
The id of the filesystem’s default subvolume. Returned: success Sample: |
|
A list of devices assigned to the filesystem. Returned: success Sample: |
|
An optional label assigned to the filesystem. Returned: success Sample: |
|
A list of dicts containing metadata for all of the filesystem’s subvolumes. Returned: success |
|
An identifier assigned to the subvolume, unique within the containing filesystem. Returned: success Sample: |
|
Paths where the subvolume is mounted on the targeted host. Returned: success Sample: |
|
The identifier of this subvolume’s parent. Returned: success Sample: |
|
The full path of the subvolume relative to the btrfs fileystem’s root. Returned: success Sample: |
|
A unique identifier assigned to the filesystem. Returned: success Sample: |