From 23d339fc4a62442800ac37eb1d751144f9b15bbf Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 5 Jun 2021 15:30:35 +0200 Subject: [PATCH] refactor: use generic ansible modules service and package --- handlers/main.yml | 2 +- tasks/post_tasks.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index 2a70b6e..2227cec 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,6 +1,6 @@ --- - name: Restart service - systemd: + service: name: matrix state: restarted daemon_reload: yes diff --git a/tasks/post_tasks.yml b/tasks/post_tasks.yml index 9e9c6aa..e3c3163 100644 --- a/tasks/post_tasks.yml +++ b/tasks/post_tasks.yml @@ -1,6 +1,6 @@ --- - name: Ensure matrix service is up and running - systemd: + service: state: started daemon_reload: yes enabled: yes