Enable fstrim systemd timer
This commit is contained in:
parent
87b2c7db56
commit
4472e45c65
|
@ -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 }}"
|
||||
|
|
Loading…
Reference in a new issue