community.general.lbu (8.5.0) — module

Local Backup Utility for Alpine Linux

| "added in version" 0.2.0 of community.general"

Authors: Kaarle Ritvanen (@kunkku)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

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

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Commit changed files (if any)
- name: Commit
  community.general.lbu:
    commit: true
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Exclude path and commit
- name: Exclude directory
  community.general.lbu:
    commit: true
    exclude:
    - /etc/opt
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Include paths without committing
- name: Include file and directory
  community.general.lbu:
    include:
    - /root/.ssh/authorized_keys
    - /var/lib/misc

Inputs

    
commit:
    description:
    - Control whether to commit changed files.
    type: bool

exclude:
    description:
    - List of paths to exclude.
    elements: str
    type: list

include:
    description:
    - List of paths to include.
    elements: str
    type: list

Outputs

msg:
  description: Error message
  returned: on failure
  type: str