19 lines
302 B
YAML
19 lines
302 B
YAML
---
|
|
- name: Copy sshd_config
|
|
template:
|
|
src: files/sshd_config
|
|
dest: /etc/ssh/sshd_config
|
|
notify: restart sshd
|
|
|
|
- name: Enable SSH daemon
|
|
service:
|
|
name: sshd
|
|
state: started
|
|
enabled: yes
|
|
|
|
- handlers:
|
|
- name: restart sshd
|
|
service:
|
|
name: sshd
|
|
state: restarted
|