Fix SSH service name (sshd->ssh), add Include directive to sshd_config template
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
---
|
||||
- name: Restart sshd
|
||||
ansible.builtin.systemd:
|
||||
name: sshd
|
||||
name: ssh
|
||||
state: restarted
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
|
||||
- name: Ensure SSH is running
|
||||
ansible.builtin.systemd:
|
||||
name: sshd
|
||||
name: ssh
|
||||
state: started
|
||||
enabled: true
|
||||
tags: [common, ssh]
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# Managed by Ansible - do not edit manually
|
||||
Include /etc/ssh/sshd_config.d/*.conf
|
||||
Port {{ sshd_port }}
|
||||
AddressFamily any
|
||||
ListenAddress 0.0.0.0
|
||||
|
||||
Reference in New Issue
Block a user