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
1 changed files with 10 additions and 1 deletions

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 }}"