ansible-desktop/roles/backup/tasks/arch.yml
Przemysław Grondek 6564f78511 Add task for backup
2023-09-22 20:05:32 +02:00

30 lines
494 B
YAML

---
- name: install btrbk
become: yes
community.general.pacman:
name:
- btrfs-progs
- btrbk
- cronie
- name: "Enable cron"
become: yes
ansible.builtin.systemd:
name: cronie
state: started
enabled: yes
- name: Copy configuration
become: yes
copy:
src: etc/btrbk/btrbk.conf
dest: /etc/btrbk/btrbk.conf
mode: 0644
- name: Add cron daily
become: yes
copy:
src: etc/cron.daily/btrbk
dest: /etc/cron.daily/btrbk
mode: 0755