roles/sshd: Configure OpenSSH daemon
The *sshd* role can be used to configure the OpenSSH daemon. It supports configuring a few options globally, as well as a limited set of options in `Match` blocks (e.g. per-user/group configuration).
This commit is contained in:
6
roles/sshd/tasks/main.yml
Normal file
6
roles/sshd/tasks/main.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
- name: ensure sshd is configured
|
||||
template:
|
||||
src=sshd_config.j2
|
||||
dest=/etc/ssh/sshd_config
|
||||
mode=0600
|
||||
notify: restart sshd
|
||||
Reference in New Issue
Block a user