Update to 2024-03-19 12:01

This commit is contained in:
Daniel Berteaud
2024-03-19 12:01:02 +01:00
parent 19d0abd6b7
commit 851d15f0e5
4 changed files with 11 additions and 4 deletions

View File

@@ -71,3 +71,7 @@ sshd_max_conn_per_minute: 0
# Use DNS. If disabled, kerb auth won't be used (as it uses DNS)
# You might need to disable it when you need no SSH login delay even if DNS is unavailable
sshd_use_dns: True
# List of users for which no management of the SSH keys will be done by ansible (they will
# be able to set their own ~/.ssh/authorized_keys)
ssh_local_users: []

View File

@@ -1,7 +1,10 @@
---
- name: Deploy sshd configuration
template: src=sshd_config.j2 dest=/etc/ssh/sshd_config
template:
src: sshd_config.j2
dest: /etc/ssh/sshd_config
validate: sshd -t -f %s
notify: restart sshd
tags: ssh

View File

@@ -57,7 +57,7 @@ X11Forwarding no
Subsystem sftp internal-sftp
# Local user are managed separately
Match User root,ansible,lbkp,zimbra,zfs-recv
Match User root,ansible,lbkp,zimbra,zfs-recv{% if ssh_local_users | length > 0 %},{{ ssh_local_users | join(',') }}{% endif +%}
AuthorizedKeysFile /etc/ssh/authorized_keys/%u/authorized_keys %h/.ssh/authorized_keys
{% for user in ssh_users | default([]) %}