fix console create user command

This commit is contained in:
Chris Croome
2023-06-15 08:37:53 +01:00
parent 2b11500622
commit d104dcfd01
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -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
+1
View File
@@ -50,3 +50,4 @@ MAILER_URL="sendmail://{{ inventory_hostname }}"
###> nelmio/cors-bundle ###
CORS_ALLOW_ORIGIN=^https?://localhost(:[0-9]+)?$
###< nelmio/cors-bundle ###