From a75603c63f7e7e27bf67574282f7084af6667d8b Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 1 Sep 2023 11:15:36 +0200 Subject: sshd: validate the new config --- roles/sshd/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'roles/sshd') diff --git a/roles/sshd/tasks/main.yml b/roles/sshd/tasks/main.yml index ed60e75..fb8d7cc 100644 --- a/roles/sshd/tasks/main.yml +++ b/roles/sshd/tasks/main.yml @@ -6,6 +6,7 @@ owner: root group: root mode: '644' + validate: /usr/sbin/sshd -t -f %s register: sshd_config - name: Restart sshd -- cgit v1.2.3