computer-playbook/roles/sshd/tasks/main.yml

15 lines
311 B
YAML
Raw Permalink Normal View History

2021-01-01 16:11:12 +01:00
- name: create sshd_config
2022-03-17 16:28:57 +01:00
template:
src: "sshd_config.j2"
2021-01-01 16:11:12 +01:00
dest: /etc/ssh/sshd_config
2022-03-17 16:28:57 +01:00
owner: root
group: root
mode: '0644'
2020-12-24 14:27:31 +01:00
notify: sshd restart
when: run_once_sshd is not defined
- name: run the sshd tasks once
set_fact:
run_once_sshd: true
when: run_once_sshd is not defined