ansible/roles/matrix-appservice-webhooks/tasks/1_user_group.yml
2019-03-12 18:03:23 +01:00

26 lines
664 B
YAML

---
# Security #1
- name: Create matrix-appservice-webhooks system group
group:
name: matrix-appservice-webhooks
system: true
state: present
# Security #2
- name: Create matrix-appservice-webhooks user
user:
name: matrix-appservice-webhooks
group: matrix-appservice-webhooks
home: /var/local/matrix-appservice-webhooks
comment: Matrix Appservice WebHooks
system: true
state: present
# Security #3
- name: Secure matrix-appservice-webhooks home directory
file:
path: /var/local/matrix-appservice-webhooks
state: directory
owner: matrix-appservice-webhooks
group: matrix-appservice-webhooks
mode: 0750