mirror of
https://github.com/rocky-linux/infrastructure
synced 2024-12-01 01:16:25 +00:00
fcdf86b31c
This commit appends the README.md to state that yaml files should start with `---` and end with `...`. This also addresses some linting warnings that were not appearing during pre-commit on local system.
27 lines
945 B
YAML
27 lines
945 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: Change signup_page.php to Account Services
|
|
replace:
|
|
path: "/var/www/mantisbt-{{ mantis_version }}/{{ item }}"
|
|
regexp: 'signup_page.php'
|
|
replace: 'https://accounts.rockylinux.org'
|
|
with_items:
|
|
- core/print_api.php
|
|
- lost_pwd_page.php
|
|
- login_page.php
|
|
|
|
- name: Change special signup_page.php reference
|
|
replace:
|
|
path: "/var/www/mantisbt-{{ mantis_version }}/core/layout_api.php"
|
|
regexp: "' . helper_mantis_url( 'signup_page.php' ) . '"
|
|
replace: 'https://accounts.rockylinux.org'
|
|
|
|
- name: Remove LDAP from checks for signup button
|
|
lineinfile:
|
|
path: "/var/www/mantisbt-{{ mantis_version }}/login_page.php"
|
|
state: absent
|
|
regex: 'LDAP != config_get_global'
|
|
...
|