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