From 7ea66e4440dc825e5fbbe0f3345944120b13df8c Mon Sep 17 00:00:00 2001 From: Lilian Roller Date: Mon, 4 Mar 2019 17:21:55 +0100 Subject: [PATCH] become: yes --- handlers/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/handlers/main.yml b/handlers/main.yml index 8f9c8a1..852b9c1 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,5 +1,8 @@ --- - name: restart ssh + become: yes service: name: "{{ ssh_service }}" state: restarted + when: ssh_service is defined +