From a20a56563b5eb77feb0af9663d8bb8b0d7ede5bb Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 5 Jun 2021 15:30:49 +0200 Subject: [PATCH] refactor: use generic ansible modules service and package --- handlers/main.yml | 2 +- tasks/setup.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index aa83bba..18e4b38 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,6 +1,6 @@ --- - name: Restart docker-renovate - systemd: + service: state: "{{ renovatebot_service_stopped | ternary('stopped', 'restarted', 'restarted') }}" daemon_reload: yes name: renovate diff --git a/tasks/setup.yml b/tasks/setup.yml index cc375a5..9d9e753 100644 --- a/tasks/setup.yml +++ b/tasks/setup.yml @@ -22,7 +22,7 @@ notify: __renovate_restart - name: Ensure renovatebot timer is up and running - systemd: + service: name: renovate.timer daemon_reload: yes enabled: yes