aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--roles/sshd/tasks/main.yml1
1 files changed, 1 insertions, 0 deletions
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