ansible/roles/common/tasks/sshd.yml

16 lines
268 B
YAML
Raw Normal View History

---
- 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