Service is ssh not sshd
This commit is contained in:
parent
6781336aff
commit
5d8a2e3f43
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user