Service is ssh not sshd

This commit is contained in:
Wojciech Kozlowski 2023-02-11 12:37:16 +01:00
parent 6781336aff
commit 5d8a2e3f43

View File

@ -8,20 +8,20 @@
mode: 0600
register: system_base_sshd_conf
- name: "enable sshd"
- name: "enable ssh"
ansible.builtin.systemd:
name: "sshd"
name: "ssh"
enabled: true
- name: "start sshd"
- name: "start ssh"
ansible.builtin.systemd:
name: "sshd"
name: "ssh"
state: "started"
register: system_base_sshd_start
- name: "restart sshd"
- name: "restart ssh"
ansible.builtin.systemd:
name: "sshd"
name: "ssh"
state: "restarted"
when:
system_base_sshd_conf.changed and