mirror of
https://github.com/nikdoof/ansible-borgmatic.git
synced 2025-12-11 09:52:18 +00:00
Update to support later Ansible versions
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
- name: Initialize borg check_repositories
|
- name: Initialize borg check_repositories
|
||||||
ansible.builtin.shell: "borgmatic init --encryption repokey"
|
ansible.builtin.shell: "borgmatic init --encryption repokey"
|
||||||
environment:
|
environment:
|
||||||
PATH: "{{ ansible_env.PATH}}:/usr/local/bin"
|
PATH: "{{ ansible_facts['env'].PATH}}:/usr/local/bin"
|
||||||
|
|
||||||
- name: Enable borgmatic.timer
|
- name: Enable borgmatic.timer
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
- name: Borgmatic - Get OS specific vars
|
- name: Borgmatic - Get OS specific vars
|
||||||
include_vars: "{{ item }}"
|
include_vars: "{{ item }}"
|
||||||
with_first_found:
|
with_first_found:
|
||||||
- "os/{{ ansible_os_family }}/{{ ansible_distribution_major_version }}.yaml"
|
- "os/{{ ansible_facts['os_family'] }}/{{ ansible_facts['distribution_major_version'] }}.yaml"
|
||||||
- "os/{{ ansible_os_family }}.yaml"
|
- "os/{{ ansible_facts['os_family'] }}.yaml"
|
||||||
|
|
||||||
- name: Borgmatic - Install and configure
|
- name: Borgmatic - Install and configure
|
||||||
when: borgmatic_enabled | default(true)
|
when: borgmatic_enabled | default(true)
|
||||||
|
|||||||
Reference in New Issue
Block a user