11 lines
377 B
YAML
11 lines
377 B
YAML
---
|
|
- name: disable gss api authentication
|
|
lineinfile: dest=/etc/ssh/sshd_config regexp='^GSSAPIAu' state=present line='GSSAPIAuthentication no' backrefs=yes
|
|
register: gssapi
|
|
notify: restart sshd
|
|
|
|
- name: disable dns lookup
|
|
lineinfile: dest=/etc/ssh/sshd_config regexp='^#UseDNS\syes$' state=present line='UseDNS no' backrefs=yes
|
|
register: dns
|
|
notify: restart sshd
|