community.general.lbu module – Local Backup Utility for Alpine Linux

Note

This module is part of the community.general collection (version 8.6.8).

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.lbu.

New in community.general 0.2.0

Synopsis

  • Manage Local Backup Utility of Alpine Linux in run-from-RAM mode

Aliases: system.lbu

Parameters

Parameter

Comments

commit

boolean

Control whether to commit changed files.

Choices:

  • false

  • true

exclude

list / elements=string

List of paths to exclude.

include

list / elements=string

List of paths to include.

Attributes

Attribute

Support

Description

check_mode

Support: full

Can run in check_mode and return changed status prediction without modifying target.

diff_mode

Support: none

Will return details on what has changed (or possibly needs changing in check_mode), when in diff mode.

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

Description

msg

string

Error message

Returned: on failure

Authors

  • Kaarle Ritvanen (@kunkku)