30 lines
494 B
YAML
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
|