Merge remote-tracking branch 'upstream/micha' into micha

This commit is contained in:
Mischa ter Smitten 2016-11-07 20:49:49 +01:00
commit 4dda7b44c9
1 changed files with 15 additions and 0 deletions

View File

@ -10,6 +10,10 @@ global {
} }
defaults { defaults {
host_key_checking = false host_key_checking = false
ansible_managed = "Ansible managed"
}
ssh_connection {
pipelining = true
} }
} }
} }
@ -138,10 +142,21 @@ install {
notify = ["Common | Update timezone"] 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 { handlers {
name = "Common | Update timezone" name = "Common | Update timezone"
command = "dpkg-reconfigure --frontend noninteractive tzdata" command = "dpkg-reconfigure --frontend noninteractive tzdata"
} }
handlers {
name = "Common | Restart sshd"
service = "name=ssh state=restarted"
}
} }
} }