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"
|
2022-11-17 01:33:35 +01:00
|
|
|
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
|
2022-11-17 01:33:35 +01:00
|
|
|
register: _user
|
|
|
|
notify:
|
|
|
|
- "Systemctl restart etebase.service"
|
|
|
|
- "Systemctl restart webserver"
|