ansible/roles/codimd/tasks/1_user_group.yml
2019-02-07 13:37:11 +01:00

26 lines
445 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