common/tasks/sshd.yaml
Simon Cornet 2272aa6a58
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
chore: migrate bare ansible_* facts to ansible_facts[] syntax
2026-05-19 09:19:03 +02:00

25 lines
581 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"'
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_facts["os_family"] == "Alpine"'
tags: "sshd"