14 lines
476 B
YAML
14 lines
476 B
YAML
---
|
|
- name: add cronjob "zfs-trim"
|
|
become: yes
|
|
ansible.builtin.cron:
|
|
name: zfs-trim - "{{ item.name }}"
|
|
state: present
|
|
job: "{{ zfs_extra_path_zpool }} trim {{ item.name }}"
|
|
minute: "{{ item.cron_minute_zfs_trim }}"
|
|
hour: "{{ item.cron_hour_zfs_trim }}"
|
|
month: "{{ item.cron_month_zfs_trim }}"
|
|
day: "{{ item.cron_day_zfs_trim }}"
|
|
# disabled: yes
|
|
when: item.type == 'ssd'
|
|
with_items: "{{ zfs_extra_zfs_pools }}"
|