From 502d7397cddc9c0b26e0fd1c2be39680b8e1676b Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Sun, 19 Jan 2025 12:54:00 -0600 Subject: [PATCH] Add support for overlaying restic --- roles/backup/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/backup/tasks/main.yml b/roles/backup/tasks/main.yml index 1db9703..7240e5a 100644 --- a/roles/backup/tasks/main.yml +++ b/roles/backup/tasks/main.yml @@ -7,6 +7,9 @@ - name: install restic through apt ansible.builtin.apt: name=restic state=present when: ansible_pkg_mgr == "apt" + - name: install restic through rpm-ostree + community.general.rpm_ostree_pkg: name=restic state=present + when: ansible_os_family == "RedHat" and ansible_pkg_mgr == "atomic_container" # The script - name: template out backup script ansible.builtin.template: src={{ backup_script }}.sh dest=/opt/backup.sh mode=0700 owner=root group=root