ansible/roles/matrix-appservice-irc/tasks/1_user_group.yml
2019-03-10 11:50:07 +01:00

26 lines
607 B
YAML

---
# Security #1
- name: Create matrix-appservice-irc system group
group:
name: matrix-appservice-irc
system: yes
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: yes
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