27 lines
651 B
YAML
27 lines
651 B
YAML
![]() |
---
|
||
|
# Security #1
|
||
|
- name: Create matrix-appservice-discord system group
|
||
|
group:
|
||
|
name: matrix-appservice-discord
|
||
|
system: yes
|
||
|
state: present
|
||
|
|
||
|
# Security #2
|
||
|
- name: Create matrix-appservice-discord user
|
||
|
user:
|
||
|
name: matrix-appservice-discord
|
||
|
group: matrix-appservice-discord
|
||
|
home: /var/local/matrix-appservice-discord
|
||
|
comment: Matrix Appservice Discord
|
||
|
system: yes
|
||
|
state: present
|
||
|
|
||
|
# Security #3
|
||
|
- name: Secure matrix-appservice-discord home directory
|
||
|
file:
|
||
|
path: /var/local/matrix-appservice-discord
|
||
|
state: directory
|
||
|
owner: matrix-appservice-discord
|
||
|
group: matrix-appservice-discord
|
||
|
mode: 0750
|