ansible/roles/matrix-appservice-irc/tasks/1_user_group.yml
2019-03-12 17:04:06 +01:00

27 lines
609 B
YAML

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