updat templates to use ansible_managed

This commit is contained in:
nd 2019-06-17 13:07:46 +01:00
parent 84d56caed2
commit 94313cc23e
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
3 changed files with 4 additions and 5 deletions

View file

@ -1,3 +1,5 @@
# {{ ansible_managed }}
# Ensure KnownHosts are unreadable if leaked - it is otherwise easier to know which hosts your keys have access to.
HashKnownHosts yes
# Host keys the client accepts - order here is honored by OpenSSH

View file

@ -1,4 +1,4 @@
### AUTOGENERATED do not edit! edit /inventory/group_vars/all.yml in ansible ###
# {{ ansible_managed }}
{% for name, keys in admin_ssh_keys.items() %}
#{{ name }}

View file

@ -1,4 +1,4 @@
# Package generated configuration file
# {{ ansible_managed }}
# See the sshd_config(5) manpage for details
# What ports, IPs and protocols we listen for
@ -49,9 +49,6 @@ Subsystem sftp internal-sftp
UsePam yes # needed to create home dirs with an ldap login
AuthorizedKeysCommand /etc/ssh/ldap_sshpubkey.sh
AuthorizedKeysCommandUser sshd
AuthorizedKeysFile /root/.ssh/authorized_keys
MaxAuthTries 10