aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-09-01 11:15:36 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-09-01 11:15:36 +0200
commita75603c63f7e7e27bf67574282f7084af6667d8b (patch)
tree4fe0846375faa5088b6f33f3a27e9dc6d585a30d /roles
parentmy_dotfiles: run setup.sh on updates only (diff)
downloadinfra-ansible-a75603c63f7e7e27bf67574282f7084af6667d8b.tar.gz
infra-ansible-a75603c63f7e7e27bf67574282f7084af6667d8b.zip
sshd: validate the new config
Diffstat (limited to 'roles')
-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