diff --git a/tasks/mantis.yml b/tasks/mantis.yml index ee722ec..64a9ca7 100644 --- a/tasks/mantis.yml +++ b/tasks/mantis.yml @@ -45,6 +45,17 @@ group: apache mode: '0640' +- name: Configure custom strings + ansible.builtin.template: + src: "var/www/mantis/config/{{ item }}.j2" + dest: "/var/www/mantisbt-{{ mantis_version }}/config/{{ item }}" + owner: apache + group: apache + mode: '0644' + with_items: + - "custom_constants_inc.php" + - "custom_strings_inc.php" + - name: Deploy plugins from Mantis GitHub git: repo: "https://github.com/mantisbt-plugins/{{ item }}.git" diff --git a/templates/var/www/mantis/config/config_inc.php.j2 b/templates/var/www/mantis/config/config_inc.php.j2 index a653d09..3c1ef0f 100644 --- a/templates/var/www/mantis/config/config_inc.php.j2 +++ b/templates/var/www/mantis/config/config_inc.php.j2 @@ -44,3 +44,5 @@ $g_enable_email_notification = ON; # Cookie problems $g_allow_permanent_cookie = OFF; +$g_status_enum_string = '10:new,20:feedback,25:needinfo,30:acknowledged,40:confirmed,50:assigned,80:resolved,90:closed'; +$g_status_colors['needinfo'] = '#797ee8'; diff --git a/templates/var/www/mantis/config/custom_constants_inc.php.j2 b/templates/var/www/mantis/config/custom_constants_inc.php.j2 new file mode 100644 index 0000000..fc081c1 --- /dev/null +++ b/templates/var/www/mantis/config/custom_constants_inc.php.j2 @@ -0,0 +1,3 @@ +