1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_etebase.git synced 2024-08-16 10:19:52 +02:00
ansible_role_etebase/tasks/create_user.yml

26 lines
644 B
YAML
Raw Normal View History

2022-11-10 00:37:04 +01:00
---
- name: "Create EteBase Group"
become: true
ansible.builtin.group:
2022-11-10 00:23:42 +01:00
name: "{{ etebase__group }}"
2022-11-10 00:37:04 +01:00
system: true
state: "present"
notify:
- "Systemctl restart etebase.service"
- "Systemctl restart webserver"
2022-11-10 00:37:04 +01:00
- name: "Create Etebase User"
become: true
ansible.builtin.user:
2022-11-10 00:23:42 +01:00
name: "{{ etebase__user }}"
2022-11-10 00:37:04 +01:00
comment: "Etebase User"
2022-11-10 00:23:42 +01:00
group: "{{ etebase__group }}"
groups: "{{ etebase__groups | default(omit) }}"
home: "{{ etebase__user_home }}"
shell: "{{ etebase__shell }}"
2022-11-10 00:37:04 +01:00
system: true
register: _user
notify:
- "Systemctl restart etebase.service"
- "Systemctl restart webserver"