--- - name: Copy sshd_config template: src: files/sshd_config dest: /etc/ssh/sshd_config notify: restart sshd - name: Enable SSH daemon service: name: sshd state: started enabled: yes