]> arthur.barton.de Git - AnsibleRoles.git/blob - roles/linux-zfs/tasks/main.yml
linux-zfs: Get rid of "zpool-scrub" config, now included in "zfs-utils"
[AnsibleRoles.git] / roles / linux-zfs / tasks / main.yml
1 ---
2 # tasks file for linux-zfs
3
4 - name: remove outdated "ZFS on Linux" repository configuration
5   tags:
6     - zfs
7     - packages
8   file: >
9     name={{ item }}
10     state=absent
11   with_items:
12     - /etc/apt/trusted.gpg.d/zfsonlinux.gpg
13     - /etc/apt/sources.list.d/zfsonlinux.list
14   notify:
15     - update APT repositories
16
17 - meta: flush_handlers
18   tags:
19     - apt
20
21 - name: install ZFS packages
22   tags:
23     - apt
24     - packages
25     - zfs
26   apt: >
27     state=present
28     name=zfsutils
29
30 - name: remove outdated zpool-scrub configuration
31   tags:
32     - zfs
33     - cron
34   file:
35     state: absent
36     path: "{{ item }}"
37   with_items:
38     - /usr/local/sbin/zpool-scrub.sh
39     - /etc/cron.d/zpool-scrub