community.general.lbu – Local Backup Utility for Alpine Linux
From Get docs
Ansible/docs/2.10/collections/community/general/lbu module
community.general.lbu – Local Backup Utility for Alpine Linux
Note
This plugin is part of the community.general collection (version 1.3.2).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.lbu
.
New in version 0.2.0: of community.general
Synopsis
- Manage Local Backup Utility of Alpine Linux in run-from-RAM mode
Parameters
Parameter | Choices/Defaults | Comments |
---|---|---|
commit boolean |
|
Control whether to commit changed files. |
exclude list / elements=string |
List of paths to exclude. | |
include list / elements=string |
List of paths to include. |
Examples
# Commit changed files (if any)
- name: Commit
community.general.lbu:
commit: true
# Exclude path and commit
- name: Exclude directory
community.general.lbu:
commit: true
exclude:
- /etc/opt
# Include paths without committing
- name: Include file and directory
community.general.lbu:
include:
- /root/.ssh/authorized_keys
- /var/lib/misc
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
msg string |
on failure |
Error message
|
Authors
- Kaarle Ritvanen (@kunkku)
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/community/general/lbu_module.html