Files
ansible/roles/common/tasks/sshd.yml
TuDatTr 25c2aff50c Added tautulli
Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
2023-04-27 01:05:24 +02:00

16 lines
268 B
YAML

---
- name: Copy sshd_config
template:
src: templates/common/ssh/sshd_config
dest: /etc/ssh/sshd_config
mode: 0644
become: yes
register: sshd
- name: Restart sshd
service:
name: "sshd"
state: "restarted"
become: yes
when: sshd.changed