Add support for overlaying restic

This commit is contained in:
Salt 2025-01-19 12:54:00 -06:00
parent 0ffd8ef535
commit 502d7397cd

View File

@ -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