diff --git a/ansible/roles/bugzilla/files/oidc-login.html b/ansible/roles/bugzilla/files/oidc-login.html new file mode 100644 index 0000000..21ba059 --- /dev/null +++ b/ansible/roles/bugzilla/files/oidc-login.html @@ -0,0 +1,8 @@ + +
+ + +Redirecting... diff --git a/ansible/roles/bugzilla/tasks/deploy-bugzilla.yml b/ansible/roles/bugzilla/tasks/deploy-bugzilla.yml index bd83bc3..9650252 100644 --- a/ansible/roles/bugzilla/tasks/deploy-bugzilla.yml +++ b/ansible/roles/bugzilla/tasks/deploy-bugzilla.yml @@ -122,6 +122,33 @@ replace: '"auth_env_realname" : "OIDC_CLAIM_name"' when: oauth_client_id is defined +- + name: Deploy OIDC login redirect page + copy: + src: oidc-login.html + dest: "{{ bugzilla_dir }}/oidc-login.html" + owner: www-data + group: www-data + when: oauth_client_id is defined + +- + name: Ensure custom template directory exists + file: + path: "{{ bugzilla_dir }}/template/en/custom/global" + state: directory + owner: www-data + group: www-data + when: oauth_client_id is defined + +- + name: Deploy custom templates + template: + src: custom-common-links.html.tmpl.j2 + dest: "{{ bugzilla_dir }}/template/en/custom/global/common-links.html.tmpl" + owner: www-data + group: www-data + when: oauth_client_id is defined + - name: Set Bugzilla file ownership file: diff --git a/ansible/roles/bugzilla/templates/custom-common-links.html.tmpl.j2 b/ansible/roles/bugzilla/templates/custom-common-links.html.tmpl.j2 new file mode 100644 index 0000000..21a3210 --- /dev/null +++ b/ansible/roles/bugzilla/templates/custom-common-links.html.tmpl.j2 @@ -0,0 +1,100 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +[% DEFAULT qs_suffix = "" %] +[% USE Bugzilla %] + +