Ansible_workstation/tasks/ssh.yml

19 lines
302 B
YAML
Raw Normal View History

2018-08-24 08:00:59 +00:00
---
2018-08-24 08:04:57 +00:00
- name: Copy sshd_config
2018-08-24 08:00:59 +00:00
template:
src: files/sshd_config
dest: /etc/ssh/sshd_config
2018-08-24 08:13:15 +00:00
notify: restart sshd
- name: Enable SSH daemon
service:
name: sshd
state: started
enabled: yes
2018-08-24 08:17:21 +00:00
- handlers:
- name: restart sshd
service:
name: sshd
state: restarted