Adapt my old role to OpenBSD

This commit is contained in:
Oleg Vasilev
2021-12-27 23:30:53 +03:00
parent ac04c70812
commit 78d0ad0abf
3 changed files with 31 additions and 1 deletions

20
tasks/main.yml Normal file
View File

@@ -0,0 +1,20 @@
---
- name: sshd | Setup sshd_config
template:
src: "{{ sshd_config_template }}"
dest: /etc/ssh/sshd_config
mode: 0640
owner: root
group: root
validate: sshd -t -f %s
notify: sshd | Apply config
- name: sshd | Enable and start service
service:
name: sshd
state: started
enabled: yes
- name: sshd | Run handlers
meta: flush_handlers