diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-09-01 11:15:36 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-09-01 11:15:36 +0200 |
commit | a75603c63f7e7e27bf67574282f7084af6667d8b (patch) | |
tree | 4fe0846375faa5088b6f33f3a27e9dc6d585a30d | |
parent | my_dotfiles: run setup.sh on updates only (diff) | |
download | infra-ansible-a75603c63f7e7e27bf67574282f7084af6667d8b.tar.gz infra-ansible-a75603c63f7e7e27bf67574282f7084af6667d8b.zip |
sshd: validate the new config
-rw-r--r-- | roles/sshd/tasks/main.yml | 1 |
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 |