--- - name: Put authorized keys template: src: files/auth_keys dest: /etc/ssh/auth_keys - name: Put sshd config template: src: files/sshd_config dest: /etc/ssh/sshd_config notify: Reload sshd - name: Reload sshd ansible.builtin.service: name: sshd state: restarted