28 lines
447 B
YAML
28 lines
447 B
YAML
|
---
|
||
|
# Security #1
|
||
|
- name: Create CodiMD system group
|
||
|
group:
|
||
|
name: codimd
|
||
|
system: yes
|
||
|
state: present
|
||
|
|
||
|
# Security #2
|
||
|
- name: Create CodiMD user
|
||
|
user:
|
||
|
name: codimd
|
||
|
group: codimd
|
||
|
home: '/var/local/codimd'
|
||
|
comment: CodiMD
|
||
|
system: yes
|
||
|
state: present
|
||
|
|
||
|
# Security #3
|
||
|
- name: Secure CodiMD home directory
|
||
|
file:
|
||
|
path: '/var/local/codimd'
|
||
|
state: directory
|
||
|
owner: codimd
|
||
|
group: codimd
|
||
|
mode: 0750
|
||
|
|