diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-12-27 17:48:39 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-12-27 17:48:39 +0200 |
commit | 91279c9972dcb7745e4f3d0e8fe1970ef8901136 (patch) | |
tree | 9e4c5f721a170be38ff37a70afbaca52cc04b880 | |
parent | f88d3f7c74e41a3f78b904d5578afd0720498e95 (diff) | |
download | ansibleness-91279c9972dcb7745e4f3d0e8fe1970ef8901136.tar.gz |
add ssd role to e1
Sponsored-by: author
-rw-r--r-- | ansible/exolobe1.yml | 1 | ||||
-rw-r--r-- | ansible/roles/ssd/tasks/main.yml | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/ansible/exolobe1.yml b/ansible/exolobe1.yml index 364baf5..44b0afb 100644 --- a/ansible/exolobe1.yml +++ b/ansible/exolobe1.yml @@ -4,6 +4,7 @@ roles: - role: sane_debian_system tags: [sane] + - role: ssd - role: comfortable-debian-system tags: [comfy] - role: chaoskey-host diff --git a/ansible/roles/ssd/tasks/main.yml b/ansible/roles/ssd/tasks/main.yml new file mode 100644 index 0000000..29de20e --- /dev/null +++ b/ansible/roles/ssd/tasks/main.yml @@ -0,0 +1,11 @@ +- name: "install util-linux for fstrim" + apt: + name: + - util-linux + state: present +- name: "enable fstrim timer" + systemd: + name: fstrim.timer + enabled: yes + state: restarted + |