--- - name: systemctrl restart ssh become: yes service: name: "{{ sshd_service }}" state: restarted when: sshd_service is defined