12 lines
253 B
YAML
12 lines
253 B
YAML
|
- 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
|