Add a new cgit/base role

This will be needed to migrate Dist Git from puppet to ansible.
This commit is contained in:
Mathieu Bridon 2014-07-08 15:28:05 +02:00 committed by Kevin Fenzi
parent 360fb1fa33
commit be0f5446f0
10 changed files with 1483 additions and 0 deletions

View file

@ -0,0 +1,26 @@
---
# tasklist for setting up CGit
- name: install the needed packages
yum: pkg={{item}} state=present
with_items:
- cgit
- lua-md5
# See https://github.com/robyduck/cgit-custom
- name: add our custom theme
file: dest=/usr/share/cgit state=directory owner=root group=root mode=0755
file: dest=/usr/share/cgit/images state=directory owner=root group=root mode=0755
copy: src={{item}} dest=/usr/share/cgit/{{item}} owner=root group=root mode=0644
with_items:
- cgit.css
- cgit.png
- cgit-fedora.css
- fedora-layout.css
- fedora-style.css
- images/favicon.ico
- images/html-bg.png
- images/t.png
- name: install the libravatar filter
copy: src=email-libravatar-korg.lua dest=/usr/libexec/cgit/filters/email-libravatar-korg.lua owner=root group=root mode=0755