ansible/roles/codimd/tasks/1_user_group.yml

27 lines
442 B
YAML
Raw Normal View History

2019-02-07 13:37:11 +01:00
---
# Security #1
- name: Create CodiMD system group
group:
name: codimd
system: yes
state: present
# Security #2
2019-02-09 08:01:19 +01:00
- name: Create CodiMD user
2019-02-07 13:37:11 +01:00
user:
name: codimd
group: codimd
2019-02-09 07:58:06 +01:00
home: /var/local/codimd
2019-02-07 13:37:11 +01:00
comment: CodiMD
system: yes
state: present
# Security #3
- name: Secure CodiMD home directory
file:
2019-02-09 07:58:06 +01:00
path: /var/local/codimd
2019-02-07 13:37:11 +01:00
state: directory
owner: codimd
group: codimd
mode: 0750