diff --git a/tasks/install.yml b/tasks/install.yml index de93321..f76eb78 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -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 diff --git a/templates/env.j2 b/templates/env.j2 index 1521d23..ce79006 100644 --- a/templates/env.j2 +++ b/templates/env.j2 @@ -50,3 +50,4 @@ MAILER_URL="sendmail://{{ inventory_hostname }}" ###> nelmio/cors-bundle ### CORS_ALLOW_ORIGIN=^https?://localhost(:[0-9]+)?$ ###< nelmio/cors-bundle ### +