Disable UseDNS for sshd (#71)
* Add working public private key pair * Disable UseDNS for SSHD
This commit is contained in:
parent
e882b88697
commit
00a8279e61
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue