devops-shit/ansible/ansible-base/roles/ssh/tasks/main.yml

19 lines
314 B
YAML
Raw Normal View History

---
- name: Put authorized keys
template:
src: files/auth_keys
dest: /etc/ssh/auth_keys
- name: Put sshd config
template:
src: files/sshd_config
dest: /etc/ssh/sshd_config
notify: Reload sshd
- name: Reload sshd
ansible.builtin.service:
name: sshd
state: restarted