--- - name: copy config file copy: src: sshd_config dest: "/etc/ssh/" - name: restart sshd community.general.sysrc: name: sshd_enable value: "YES" notify: restart sshd