[sshd] Enables automatic removal of stale sockets. Useful for GPG forwarding

certbot_on_virtu
_pollion 2019-12-17 15:52:44 +01:00
parent cbea83ebc6
commit 3f8cdcf29d
1 changed files with 13 additions and 0 deletions

View File

@ -37,3 +37,16 @@
src: update-motd.d/05-service.j2
dest: /etc/update-motd.d/05-ansible
mode: 0755
- name: Enable automatic removal of stale sockets
lineinfile:
dest: /etc/ssh/sshd_config
regexp: ^StreamLocalBindUnlink
line: "StreamLocalBindUnlink yes # Enable automatic removal of stale sockets"
state: present
- name: Restart sshd
systemd:
enabled: yes
state: restarted
name: sshd