xppl/ansible/roles/perms/tasks/main.yml

33 lines
533 B
YAML

---
- name: Ensure the XPPL group exists.
become: true
group:
name: xppl
system: true
state: present
- name: Ensure the XPPL user exists.
become: true
user:
name: xppl
system: true
groups: xppl
create_home: false
- name: Add the XPPL user to the XPPL group.
become: true
user:
name: xppl
groups: xppl
append: true
- name: Ensure the XPPL root directory is created.
become: true
file:
path: /var/xppl/
state: directory
owner: xppl
group: xppl
mode: 0755