Enable fstrim systemd timer
This commit is contained in:
parent
87b2c7db56
commit
4472e45c65
|
@ -85,7 +85,7 @@
|
||||||
- firewalld
|
- firewalld
|
||||||
- rsyslog
|
- rsyslog
|
||||||
|
|
||||||
- name: Packages for non-LXC instances
|
- name: Services for non-LXC instances
|
||||||
when: instance_type != 'lxc'
|
when: instance_type != 'lxc'
|
||||||
block:
|
block:
|
||||||
- name: Install haveged
|
- name: Install haveged
|
||||||
|
@ -99,6 +99,15 @@
|
||||||
enabled: true
|
enabled: true
|
||||||
state: started
|
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 }}'
|
- name: Create directory '{{ data_fs }}'
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ data_fs }}"
|
path: "{{ data_fs }}"
|
||||||
|
|
Loading…
Reference in a new issue