ansible/roles/matrix-appservice-irc/tasks/service_user.yml

20 lines
491 B
YAML
Raw Normal View History

2019-03-29 19:25:11 +01:00
---
# Having a custom group is useless so use nogroup
- name: "Create {{ appservice_user }} user"
user:
name: "{{ appservice_user }}"
group: nogroup
home: "{{ appservice_homedir }}"
system: true
shell: /bin/false
state: present
# Only service user should be able to go there
- name: "Secure {{ appservice_user }} home directory"
file:
path: "{{ appservice_homedir }}"
state: directory
owner: "{{ appservice_user }}"
group: nogroup
mode: 0700