Commit 3a2162d0 authored by Guillaume Hervier's avatar Guillaume Hervier

playbook: Add sshd-tweaks role, disable reverse DNS resolution

parent 57c90ac6
---
- name: reload sshd
service:
name: sshd
state: reloaded
- name: restart sshd
service:
name: sshd
state: restarted
---
- name: Disable reverse name resolution for SSH
lineinfile:
dest: /etc/ssh/sshd_config
regexp: "^UseDNS"
line: "UseDNS no"
insertafter: EOF
state: present
notify:
- reload sshd
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment