ansible/roles/cryptoraid/tasks/main.yml

30 lines
736 B
YAML
Raw Normal View History

2022-09-27 10:27:00 +02:00
---
- name: alpine setup
include_tasks: alpine.yml
when: ansible_distribution == "Alpine"
2022-10-20 15:03:12 +02:00
- name: copy maintainance scripts
copy:
src: "bin/{{ item }}"
dest: "/usr/local/bin/{{ item }}"
mode: "755"
loop:
- "btr_defrag.sh"
- "btr_balance.sh"
- "btr_scrub.sh"
- "fs_trim.sh"
2022-10-20 16:17:37 +02:00
- name: include btrfs maintainance scripts to lbu
lbu:
include:
- /usr/local/bin/btr_defrag.sh
- /usr/local/bin/btr_balance.sh
- /usr/local/bin/btr_scrub.sh
- /usr/local/bin/fs_trim.sh
when: ansible_distribution == "Alpine" and alpine_mode in ["diskless", "data"]
2022-10-20 16:17:37 +02:00
- name: copy btrbk config
copy:
src: "host_files/btrbk/{{ ansible_hostname }}/btrbk.conf"
dest: /etc/btrbk/btrbk.conf