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