Service is ssh not sshd
This commit is contained in:
parent
6781336aff
commit
5d8a2e3f43
@ -8,20 +8,20 @@
|
|||||||
mode: 0600
|
mode: 0600
|
||||||
register: system_base_sshd_conf
|
register: system_base_sshd_conf
|
||||||
|
|
||||||
- name: "enable sshd"
|
- name: "enable ssh"
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: "sshd"
|
name: "ssh"
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
- name: "start sshd"
|
- name: "start ssh"
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: "sshd"
|
name: "ssh"
|
||||||
state: "started"
|
state: "started"
|
||||||
register: system_base_sshd_start
|
register: system_base_sshd_start
|
||||||
|
|
||||||
- name: "restart sshd"
|
- name: "restart ssh"
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: "sshd"
|
name: "ssh"
|
||||||
state: "restarted"
|
state: "restarted"
|
||||||
when:
|
when:
|
||||||
system_base_sshd_conf.changed and
|
system_base_sshd_conf.changed and
|
||||||
|
Loading…
Reference in New Issue
Block a user