From 706272c54a7d14f94ef080cca578d44237c7b1ca Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 5 Jun 2021 15:30:32 +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 a57a674..15c2f1d 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,6 +1,6 @@ --- - name: Restart mosquitto service - systemd: + service: state: restarted daemon_reload: yes name: mosquitto diff --git a/tasks/post_tasks.yml b/tasks/post_tasks.yml index 47874b3..bb2646f 100644 --- a/tasks/post_tasks.yml +++ b/tasks/post_tasks.yml @@ -1,6 +1,6 @@ --- - name: Ensure mosquitto service is up and running - systemd: + service: state: started daemon_reload: yes enabled: yes