ansible-ops-management/tasks/mantispatch.yml

21 lines
675 B
YAML

---
# Patch up various pieces of mantis to customize it. We do not rely on local
# bug tracker accounts. We are doing regex instead of just replacing the
# file as a whole. Should make it easier to deal with upgrades in theory.
- name: Overwrite signup page
ansible.builtin.copy:
src: "var/www/mantisbt/signup_page.php"
dest: "/var/www/mantisbt-{{ mantis_version }}/signup_page.php"
owner: apache
group: apache
mode: '0664'
tags:
- harden
- name: Remove LDAP from checks for signup button
ansible.builtin.lineinfile:
path: "/var/www/mantisbt-{{ mantis_version }}/login_page.php"
state: absent
regex: 'LDAP != config_get_global'
...