From 1c7dc3ff86d2383528d982cfdc209a0e0f2ce9e0 Mon Sep 17 00:00:00 2001 From: iRaven4522 Date: Sun, 28 Apr 2024 20:04:10 -0500 Subject: [PATCH] restart ssh service w/o roles --- linux/compliance.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linux/compliance.yaml b/linux/compliance.yaml index 6ba6b75..8aaee90 100644 --- a/linux/compliance.yaml +++ b/linux/compliance.yaml @@ -71,7 +71,10 @@ with_items: - regexp: "^PermitRootLogin" line: "PermitRootLogin no" - notify: restart ssh + - name: Restart SSH service. + service: + name: sshd + state: restarted # Delete our network ansible key from the root user. - name: Delete our network ansible key (and other keys) from the root user.