feat: add sshd config role
This commit is contained in:
parent
824d7b8a12
commit
5e2cafaf47
6 changed files with 144 additions and 1 deletions
9
roles/any.common.ssh/tasks/main.yml
Normal file
9
roles/any.common.ssh/tasks/main.yml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
- name: Ensure sshd config is present
|
||||
ansible.builtin.copy:
|
||||
src: 'sshd_config'
|
||||
dest: '/etc/ssh/sshd_config'
|
||||
owner: root
|
||||
group: root
|
||||
mode: '644'
|
||||
notify: 'restart sshd'
|
||||
Loading…
Add table
Add a link
Reference in a new issue