- name: Copy sshd configuration copy: src: sshd_config dest: /etc/ssh/sshd_config owner: root group: root mode: u=rw,g=r,o=r notify: - reload sshd - name: Enable and start sshd service: name: sshd enabled: yes state: started