From 7ea3df3281fe70d2d602069b9a91ed98c30c528a Mon Sep 17 00:00:00 2001 From: p-netm Date: Thu, 6 Feb 2020 16:21:26 +0300 Subject: [PATCH] Restart systemctl as root; handler --- handlers/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/handlers/main.yml b/handlers/main.yml index 7239d52..a9d4d19 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,7 +1,9 @@ --- - name: start_express_service + become: true + become_user: root systemd: name: "{{ express_service_name }}" - state: started + state: restarted daemon_reload: true enabled: true \ No newline at end of file