Compare commits

...

5 Commits

Author SHA1 Message Date
renovate[bot]
48239413be Update actions/checkout action to v6 2025-12-05 02:56:43 +00:00
0c6d2e6710 Update to support later Ansible versions 2025-11-29 18:36:55 +00:00
90994a827d Don't fail if the timer doesnt exist 2025-10-12 16:05:14 +01:00
19167bcce0 Fix package uninstall 2025-10-12 16:03:51 +01:00
2d657da73d Don't mask the timer 2025-10-12 16:02:06 +01:00
4 changed files with 7 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Lint Ansible Playbook
uses: ansible/ansible-lint-action@main

View File

@@ -21,7 +21,7 @@
- name: Initialize borg check_repositories
ansible.builtin.shell: "borgmatic init --encryption repokey"
environment:
PATH: "{{ ansible_env.PATH}}:/usr/local/bin"
PATH: "{{ ansible_facts['env'].PATH}}:/usr/local/bin"
- name: Enable borgmatic.timer
ansible.builtin.systemd:

View File

@@ -2,8 +2,8 @@
- name: Borgmatic - Get OS specific vars
include_vars: "{{ item }}"
with_first_found:
- "os/{{ ansible_os_family }}/{{ ansible_distribution_major_version }}.yaml"
- "os/{{ ansible_os_family }}.yaml"
- "os/{{ ansible_facts['os_family'] }}/{{ ansible_facts['distribution_major_version'] }}.yaml"
- "os/{{ ansible_facts['os_family'] }}.yaml"
- name: Borgmatic - Install and configure
when: borgmatic_enabled | default(true)

View File

@@ -3,8 +3,8 @@
ansible.builtin.systemd:
name: borgmatic.timer
enabled: false
masked: true
state: stopped
failed_when: false
- name: Remove borgmatic systemd units
ansible.builtin.file:
@@ -21,6 +21,8 @@
ansible.builtin.package:
name: borgmatic
state: absent
when:
- not (borgmatic_install_from_pip | default(false))
- name: Remove borgmatic configuration directory
ansible.builtin.file: