snel.kubernetes-cluster/roles/debian/tasks/ssh.yml

15 lines
367 B
YAML

---
- name: Configure SSH UseDNS=no
ansible.builtin.lineinfile:
path: /etc/ssh/sshd_config
regexp: "^#?UseDNS "
line: UseDNS no
notify: Restart SSH
- name: Configure SSH GSSAPIAuthentication=no
ansible.builtin.lineinfile:
path: /etc/ssh/sshd_config
regexp: "^#?GSSAPIAuthentication "
line: GSSAPIAuthentication no
notify: Restart SSH