1 #####################################
2 ### someone's ansible provisioner ###
3 #####################################
4 # Part of: https://git.somenet.org/root/pub/somesible.git
5 # 2017-2024 by someone <someone@somenet.org>
8 - name: make sure /btrfs exists
15 when: setup_btrfs_helpers | bool
18 - name: copy btrfs-snapshot.sh
21 dest: "/btrfs/btrfs-snapshot.sh"
26 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/btrfs-snapshot.sh"
27 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/btrfs-snapshot.sh"
28 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/btrfs-snapshot.sh"
29 - "default/btrfs-snapshot.sh"
30 when: setup_btrfs_helpers | bool
33 - name: copy btrfs-regen-snaphot-homelinks.sh
36 dest: "/btrfs/btrfs-regen-snaphot-homelinks.sh"
41 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/btrfs-regen-snaphot-homelinks.sh"
42 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/btrfs-regen-snaphot-homelinks.sh"
43 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/btrfs-regen-snaphot-homelinks.sh"
44 - "default/btrfs-regen-snaphot-homelinks.sh"
45 when: setup_btrfs_helpers | bool
48 - name: setup cron.d file for btrfs snapshots + scrub.
51 dest: "/etc/cron.d/btrfs"
56 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/cron.j2"
57 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/cron.j2"
58 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/cron.j2"
60 when: setup_btrfs_helpers | bool