1 2 3 4 5 6 7 8 9 10 11 12 13 14
- 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