SSH config

This commit is contained in:
Pim Kunis 2022-12-04 17:18:25 +01:00
parent a3e4b8d822
commit 069089ee2f
5 changed files with 63 additions and 5 deletions

11
roles/ssh/tasks/main.yml Normal file
View file

@ -0,0 +1,11 @@
- name: Copy sshd config
copy:
src: "{{ role_path }}/files/sshd_config"
dest: /etc/ssh/sshd_config
register: sshd_config
- name: Restart SSH service
systemd:
enabled: true
name: sshd
state: reloaded
when: sshd_config.changed