Disable UseDNS for sshd (#71)

* Add working public private key pair

* Disable UseDNS for SSHD
This commit is contained in:
Mischa ter Smitten 2016-11-03 10:22:10 +01:00 committed by Kevin van Zonneveld
parent e882b88697
commit 00a8279e61
1 changed files with 11 additions and 0 deletions

View File

@ -142,10 +142,21 @@ install {
notify = ["Common | Update timezone"]
}
tasks {
name = "Common | Disable UseDNS for SSHD"
lineinfile = "dest=/etc/ssh/sshd_config regexp=\"^UseDNS\" line=\"UseDNS no\" state=present"
notify = ["Common | Restart sshd"]
}
handlers {
name = "Common | Update timezone"
command = "dpkg-reconfigure --frontend noninteractive tzdata"
}
handlers {
name = "Common | Restart sshd"
service = "name=ssh state=restarted"
}
}
}