Skip to content
Snippets Groups Projects
Commit dcee6a4a authored by Kristian Klausen's avatar Kristian Klausen :tada: Committed by Jelle van der Waa
Browse files

common: Don't setup btrfs-scrub@ for backup snapshot

parent aba557bb
No related branches found
No related tags found
1 merge request!196common: Don't setup btrfs-scrub@ for backup snapshot
......@@ -38,7 +38,7 @@
- name: start and enable btrfs scrub timer
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"
when: "item.fstype == 'btrfs' and item.mount != '/var/lib/docker/btrfs' and 'backup' not in item.mount"
- name: install mlocate
pacman: name=mlocate state=present
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment