ansible/roles/codimd/tasks/1_user_group.yml
2019-02-05 12:42:05 +01:00

27 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