sshd.yml 368 B

123456789101112131415
  1. - name: Disable dns for sshd
  2. become: true
  3. ansible.builtin.lineinfile:
  4. path: /etc/ssh/sshd_config
  5. regexp: "^UseDNS "
  6. line: UseDNS no
  7. backup: true
  8. - name: Disable GSS api auth for sshd
  9. become: true
  10. ansible.builtin.lineinfile:
  11. path: /etc/ssh/sshd_config
  12. regexp: "^GSSAPIAuthentication "
  13. line: GSSAPIAuthentication no
  14. backup: true