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 +