Skip to content
Snippets Groups Projects
Commit 3f8cdcf2 authored by Maxime Bombar's avatar Maxime Bombar
Browse files

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

parent cbea83eb
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment