From b66cc3793ac46430e49ebb33f1e012421acf8225 Mon Sep 17 00:00:00 2001 From: Eduardo Benzecri Date: Thu, 15 Jun 2023 19:21:50 -0300 Subject: [PATCH] ansible-scylla-node: Enforce 'scylla-fstrim.timer' service to be enabled and started This patches forces, after running 'scylla_fstrim_setup', to enable and start 'scylla-fstrim.timer' Signed-off-by: Eduardo Benzecri --- ansible-scylla-node/handlers/main.yml | 7 +++++++ ansible-scylla-node/tasks/common.yml | 1 + 2 files changed, 8 insertions(+) diff --git a/ansible-scylla-node/handlers/main.yml b/ansible-scylla-node/handlers/main.yml index c446e0e1..31f0ad93 100644 --- a/ansible-scylla-node/handlers/main.yml +++ b/ansible-scylla-node/handlers/main.yml @@ -31,6 +31,13 @@ state: started enabled: yes +- name: Enable and start 'scylla-fstrim.timer' service + ansible.builtin.service: + name: scylla-fstrim.timer + state: started + enabled: yes + become: true + - name: scylla-manager-agent start become: true service: diff --git a/ansible-scylla-node/tasks/common.yml b/ansible-scylla-node/tasks/common.yml index 367f34d8..e5ea5328 100644 --- a/ansible-scylla-node/tasks/common.yml +++ b/ansible-scylla-node/tasks/common.yml @@ -184,6 +184,7 @@ - name: configure fstrim shell: | scylla_fstrim_setup + notify: Enable and start 'scylla-fstrim.timer' service - name: configure sysconfig shell: |