mirror of
https://git.coop/webarch/kimai.git
synced 2024-05-07 02:54:51 +00:00
fix console create user command
This commit is contained in:
@ -32,6 +32,8 @@
|
||||
line: 'export PATH="{{ kimai_docroot | dirname }}/bin:${HOME}/bin:${PATH}"'
|
||||
regexp: '^export PATH='
|
||||
create: true
|
||||
owner: "{{ kimai_user }}"
|
||||
group: "{{ kimai_group | default(kimai_user) }}"
|
||||
mode: "0600"
|
||||
|
||||
- name: DocumentRoot public directory absent
|
||||
@ -116,7 +118,7 @@
|
||||
kimai_admin_password: "{{ kimai_admin_pwgen.stdout | trim | quote }}"
|
||||
|
||||
- name: Create admin user account
|
||||
ansible.builtin.command: "bin/console --no-ansi -n kimai:create-user {{ kimai_admin_user | quote }} {{ kimai_admin_email | quote }} ROLE_SUPER_ADMIN {{ kimai_admin_password }}"
|
||||
ansible.builtin.command: "bin/console --no-ansi -n kimai:user:create {{ kimai_admin_user | quote }} {{ kimai_admin_email | quote }} ROLE_SUPER_ADMIN {{ kimai_admin_password }}"
|
||||
args:
|
||||
chdir: "{{ kimai_docroot | dirname }}"
|
||||
changed_when: true
|
||||
|
@ -50,3 +50,4 @@ MAILER_URL="sendmail://{{ inventory_hostname }}"
|
||||
###> nelmio/cors-bundle ###
|
||||
CORS_ALLOW_ORIGIN=^https?://localhost(:[0-9]+)?$
|
||||
###< nelmio/cors-bundle ###
|
||||
|
||||
|
Reference in New Issue
Block a user