From 5d8a2e3f43fb408f2a58efb5d56d874c7b713c19 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Sat, 11 Feb 2023 12:37:16 +0100 Subject: [PATCH] Service is ssh not sshd --- system/base/sshd/tasks/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/system/base/sshd/tasks/main.yml b/system/base/sshd/tasks/main.yml index 230a9dc..7c30ef3 100644 --- a/system/base/sshd/tasks/main.yml +++ b/system/base/sshd/tasks/main.yml @@ -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