ansible/roles/matrix-appservice-irc/tasks/1_user_group.yml

27 lines
609 B
YAML
Raw Normal View History

2019-03-10 11:50:07 +01:00
---
# Security #1
- name: Create matrix-appservice-irc system group
group:
name: matrix-appservice-irc
2019-03-12 17:04:06 +01:00
system: true
2019-03-10 11:50:07 +01:00
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
2019-03-12 17:04:06 +01:00
system: true
2019-03-10 11:50:07 +01:00
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