common/tasks/sshd.yaml

25 lines
563 B
YAML

---
# configure sshd
- name: "config - sshd"
ansible.builtin.template:
src: "templates/sshd/sshd_config.j2"
dest: "/etc/ssh/sshd_config"
owner: "root"
group: "root"
mode: "0644"
notify: "restart ssh"
when: 'ansible_os_family == "Debian"'
tags: "sshd"
# configure sshd
- name: "config - sshd"
ansible.builtin.template:
src: "templates/sshd/sshd_config.j2"
dest: "/etc/ssh/sshd_config"
owner: "root"
group: "root"
mode: "0644"
notify: "restart ssh alpine"
when: 'ansible_os_family == "Alpine"'
tags: "sshd"