mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-23 10:01:28 +08:00
Try adding a custom cgit header for staging.
This commit is contained in:
@@ -8,6 +8,9 @@ cache-size=1000
|
||||
# Specify some default clone prefixes
|
||||
clone-prefix=git://pkgs.fedoraproject.org ssh://pkgs.fedoraproject.org http://pkgs.fedoraproject.org/git
|
||||
|
||||
# Some header information to throw at the top of each page.
|
||||
header=/usr/share/cgit/cgit-header-fedora.html
|
||||
|
||||
# Specify the css url
|
||||
css=/cgit-data/cgit.css
|
||||
|
||||
|
||||
@@ -219,6 +219,12 @@
|
||||
notify:
|
||||
- restart httpd
|
||||
|
||||
- name: install our custom header for cgit
|
||||
template: cgit-header.html dest=/usr/share/cgit/cgit-header-fedora.html
|
||||
tags: distgit
|
||||
notify:
|
||||
- restart httpd
|
||||
|
||||
- name: install the CGit-related httpd config
|
||||
copy: src=redirect.conf dest=/etc/httpd/conf.d/pkgs.fedoraproject.org/redirect.conf
|
||||
tags: distgit
|
||||
|
||||
1
roles/distgit/templates/cgit-header.html
Normal file
1
roles/distgit/templates/cgit-header.html
Normal file
@@ -0,0 +1 @@
|
||||
<p>This is a test. The environment is {{env}}.</p>
|
||||
Reference in New Issue
Block a user