|
|
|
|
@ -16,6 +16,18 @@
|
|
|
|
|
gitweb_user: gitweb |
|
|
|
|
gitweb_root: /home/gitweb/projects |
|
|
|
|
gitweb_stylesheet: custom_highlighting.css |
|
|
|
|
block: |
|
|
|
|
- name: test if gitweb is already installed |
|
|
|
|
find: |
|
|
|
|
paths: /etc |
|
|
|
|
pattern: gitweb.conf |
|
|
|
|
register: check_installed |
|
|
|
|
|
|
|
|
|
- set_fact: |
|
|
|
|
install_gitweb: "{{ check_installed.matched == 0 }}" |
|
|
|
|
|
|
|
|
|
- name: install block |
|
|
|
|
when: install_gitweb |
|
|
|
|
block: |
|
|
|
|
- name: make hash of a random password |
|
|
|
|
set_fact: |
|
|
|
|
@ -66,7 +78,7 @@
|
|
|
|
|
src: "{{ gitweb_stylesheet }}.j2" |
|
|
|
|
dest: "/usr/share/gitweb/static/{{ gitweb_stylesheet }}" |
|
|
|
|
|
|
|
|
|
- name: enable and (re)start lighttpd |
|
|
|
|
- name: enable and (re)start lighttpd |
|
|
|
|
service: |
|
|
|
|
name: lighttpd |
|
|
|
|
enabled: yes |
|
|
|
|
|