All checks were successful
ci/woodpecker/push/linting Pipeline was successful
Tag only in main.yaml, tasks inherit them.
23 lines
551 B
YAML
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"'
|