disable systemd socket activation (#769)

* disable systemd socket activation

Signed-off-by: Sebastian Gumprich <[email protected]>

* move start to after deactivation so it can start

---------

Signed-off-by: Sebastian Gumprich <[email protected]>
This commit is contained in:
Sebastian Gumprich authored and GitHub committed 2024-06-18 15:56:09 +02:00
1 parent 8dab761c52
commit 19ca997bd6
3 files changed
+33

No files matched your search

@@ -0,0 +1,18 @@
---
- name: Remove ssh service systemd-socket file
ansible.builtin.file:
path: /etc/systemd/system/ssh.service.d/00-socket.conf
state: absent
- name: Disable systemd-socket activation
ansible.builtin.systemd:
name: ssh.socket
state: stopped
enabled: false
masked: true
- name: Enable normal sshd start
ansible.builtin.systemd:
name: ssh.service
state: started
enabled: true