Fix rights for sshd_config
parent
78d0ad0abf
commit
a201bd83b7
|
@ -1,12 +1,15 @@
|
|||
---
|
||||
|
||||
- name: sshd | Setup sshd_config
|
||||
- name: unbound | Load system-specific vars
|
||||
include_vars: "{{ ansible_system | lower }}.yml"
|
||||
|
||||
- name: sshd | Deploy sshd_config
|
||||
template:
|
||||
src: "{{ sshd_config_template }}"
|
||||
dest: /etc/ssh/sshd_config
|
||||
mode: 0640
|
||||
owner: root
|
||||
group: root
|
||||
mode: "{{ sshd_config_props.mode }}"
|
||||
owner: "{{ sshd_config_props.owner }}"
|
||||
group: "{{ sshd_config_props.group }}"
|
||||
validate: sshd -t -f %s
|
||||
notify: sshd | Apply config
|
||||
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
|
||||
sshd_config_props:
|
||||
mode: 0640
|
||||
owner: root
|
||||
group: root
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
|
||||
sshd_config_props:
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: wheel
|
||||
|
Loading…
Reference in New Issue