SSH config
This commit is contained in:
parent
a3e4b8d822
commit
069089ee2f
5 changed files with 63 additions and 5 deletions
11
roles/ssh/tasks/main.yml
Normal file
11
roles/ssh/tasks/main.yml
Normal 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
|
Reference in a new issue