ansible-desktop/roles/backup/tasks/arch.yml

30 lines
494 B
YAML
Raw Normal View History

2023-09-22 18:05:32 +00:00
---
- 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