Skip to content

Commit

Permalink
Test fixes (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
m3nu committed Oct 18, 2024
1 parent 503eebf commit c8c85d1
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ Works great with [BorgBase.com](https://www.borgbase.com) - Simple and Secure Ho
Systemd timers, be sure to remove the Cron job in `/etc/cron.d/borgmatic` first.
The role will also alert you when trying to use both timers.

## Example playbook with root as backup user and Cron timer
## Example playbook with root as backup user, using the distro package and Cron timer

```
- hosts: all
roles:
- role: borgbase.ansible_role_borgbackup
borg_install_method: package
borg_encryption_passphrase: CHANGEME
borg_repository:
- ssh://[email protected]/./repo
Expand Down
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,6 @@ borgmatic_version: ">=1.7.11"
borg_venv_path: "/opt/borgmatic"
borg_user: "root"
borg_group: "root"
backup_user_info:
home: "/home/{{ borg_user }}"
...
10 changes: 5 additions & 5 deletions meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ argument_specs:
default: root
description: Name of the Group to create Backups (Service Account)
borg_source_directories:
type: List
type: list
default: "/etc/hostname"
required: false
description: List of local folders to back up.
Expand All @@ -59,7 +59,7 @@ argument_specs:
required: false
description: Don't cross file-system boundaries.
borg_repository:
type: List
type: str
required: true
description: |
Full path to repository.
Expand All @@ -75,11 +75,11 @@ argument_specs:
required: false
description: Store ctime into archive.
borg_exclude_patterns:
type: List
type: list
required: false
description: Any paths matching these patterns are excluded from backups. Globs and tildes are expanded.
borg_exclude_from:
type: List
type: list
required: false
description: Read exclude patterns from one or more separate named files, one pattern per line.
borg_remote_path:
Expand Down Expand Up @@ -144,7 +144,7 @@ argument_specs:
required: false
description: Number of yearly archives to keep.
borgmatic_checks:
type: List
type: list
required: false
description: |
List of one or more consistency checks to run
Expand Down
4 changes: 1 addition & 3 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ galaxy_info:
- all
- name: Ubuntu
versions:
- trusty
- xenial
- bionic
- all
- name: ArchLinux
versions:
- all
Expand Down
4 changes: 2 additions & 2 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ platforms:
image: almalinux:9
- name: fedora-latest
image: fedora:latest
- name: debian-bullseye
image: debian:bullseye
- name: debian-bookworm
image: debian:bookworm
- name: ubuntu-latest
image: ubuntu:latest
provisioner:
Expand Down

0 comments on commit c8c85d1

Please sign in to comment.