kimai_local var for config/packages/local.yaml

This commit is contained in:
Chris Croome
2023-06-15 13:35:23 +01:00
parent d104dcfd01
commit 63a0d5fad7
2 changed files with 18 additions and 28 deletions
+17 -4
View File
@@ -7,10 +7,6 @@ kimai_group: www-data
kimai_home: /var/www
kimai_private: "{{ kimai_home }}/kimai"
kimai_docroot: "{{ kimai_home }}/kimai/public"
kimai_tz: Europe/London
kimai_locale: en
kimai_country: GB
kimai_currency: GBP
# The MySQL user, password and database name need to be set using these variables:
# kimai_dbuser:
# kimai_dbpass:
@@ -20,6 +16,23 @@ kimai_dbport: 3306
# If these variables are set then the admin user will be created on install:
# kimai_admin_user:
# kimai_admin_email:
kimai_local:
kimai:
defaults:
user:
timezone: Europe/London
language: en
currency: GBP
customer:
timezone: Europe/London
country: GB
currency: GBP
calendar:
businessHours:
begin: '09:00'
end: '17:00'
user:
registration: false
# Send the admin password by email to the admin:
# kimai_notify: true
kimai_notify_from: "{{ kimai_user }}@{{ inventory_hostname }}"
+1 -24
View File
@@ -1,30 +1,7 @@
---
# {{ ansible_managed }}
kimai:
defaults:
user:
timezone: {{ kimai_tz | default('Europe/London') }}
language: {{ kimai_locale | default('en') }}
currency: {{ kimai_currency | default('GBP') }}
customer:
timezone: {{ kimai_tz | default('Europe/London') }}
country: {{ kimai_country | default('GB') }}
currency: {{ kimai_currency | default('GBP') }}
calendar:
businessHours:
begin: '09:00'
end: '17:00'
{% if kimai_user_registration == False %}
user:
registration: false
{% endif %}
{% if kimai_email_transport == "sendmail" %}
swiftmailer:
transport: sendmail
command: {{ kimai_sendmail_command }}
{% endif %}
{{ kimai_local | to_nice_yaml }}
# vim: set ft=yaml
...