- name: SSH Listen Port 7000 lineinfile: path: /etc/ssh/sshd_config line: 'Port 7000' notify: - reload sshd - name: SSH Listen Port 22 (safety) lineinfile: path: /etc/ssh/sshd_config regexp: '^#Port 22' line: 'Port 22' notify: - reload sshd - name: Authorized Keys copy: src: authorized_keys dest: /root/.ssh/authorized_keys