From 788229f94062fbf430aa7dffb7f1aaaa95b6bdb0 Mon Sep 17 00:00:00 2001 From: LinuxSquare <7436714-OfficialLinuxSquare@users.noreply.gitlab.com> Date: Thu, 27 Apr 2023 20:40:40 +0200 Subject: [PATCH] Change service.enabled to service.running --- services/ssh.sls | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/services/ssh.sls b/services/ssh.sls index 1ce9cf9..a3315d7 100644 --- a/services/ssh.sls +++ b/services/ssh.sls @@ -17,8 +17,12 @@ system_ssh_configuration: - source: salt://{{ tpldir }}/files/ssh_sshd_config system_ssh_enable: - service.enabled: + service.running: - name: sshd + - enable: True + - watch: + - system_ssh_configuration + - system_ssh_add_keys - require: - system_ssh_configuration - system_ssh_add_keys