Commit 4aa4b42f authored by Kristian Klausen's avatar Kristian Klausen 🎉 Committed by Sven-Hendrik Haase
Browse files

common: Setup btrfs-scrub for all btrfs mounts

Fix #155
parent 86bc7f75
Pipeline #2356 passed with stage
in 56 seconds
......@@ -33,8 +33,9 @@
when: "'hcloud' not in group_names"
- name: start and enable btrfs scrub timer
service: name=btrfs-scrub@-.timer enabled=yes state=started
when: filesystem == "btrfs"
service: name=btrfs-scrub@{{ '-' if (item.mount | length == 1) else (item.mount.split("/", 1)[1] | replace("/", "-")) }}.timer enabled=yes state=started
loop: "{{ ansible_mounts }}"
when: item.fstype == "btrfs" and item.mount != "/var/lib/docker/btrfs"
- name: install mlocate
pacman: name=mlocate state=present
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment