Ansible_workstation/tasks/ssh.yml

14 lines
213 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