common/tasks/sshd.yaml
Simon Cornet 210fbd68f4
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
chore: cleanup tag mess
Tag only in main.yaml, tasks inherit them.
2026-05-20 09:40:02 +02:00

23 lines
551 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_facts["os_family"] == "Debian"'
# 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_facts["os_family"] == "Alpine"'