Enable fstrim systemd timer

This commit is contained in:
Sam A. 2024-04-14 19:15:20 +02:00
parent 87b2c7db56
commit 4472e45c65
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -85,7 +85,7 @@
- firewalld
- rsyslog
- name: Packages for non-LXC instances
- name: Services for non-LXC instances
when: instance_type != 'lxc'
block:
- name: Install haveged
@ -99,6 +99,15 @@
enabled: true
state: started
- name: Services for QEMU instances
when: instance_type == 'qemu'
block:
- name: Ensure fstrim systemd timer is enabled
ansible.builtin.systemd_service:
name: fstrim.timer
enabled: true
state: started
- name: Create directory '{{ data_fs }}'
ansible.builtin.file:
path: "{{ data_fs }}"