35 lines
612 B
YAML
35 lines
612 B
YAML
---
|
|
|
|
- name: install git server packages
|
|
package:
|
|
name: "{{ item }}"
|
|
state: installed
|
|
with_items:
|
|
- gitweb
|
|
- highlight
|
|
- perl-Digest-MD5
|
|
|
|
- name: create git directory
|
|
file:
|
|
path: /srv/git
|
|
src: /export/git
|
|
state: link
|
|
owner: root
|
|
group: root
|
|
|
|
- name: create gitweb config
|
|
copy:
|
|
dest: /etc/gitweb.conf
|
|
src: gitweb.conf
|
|
mode: 0644
|
|
owner: root
|
|
group: root
|
|
|
|
- name: create nginx git config
|
|
copy:
|
|
dest: /etc/nginx/conf.d/{{ inventory_hostname }}/git.conf
|
|
src: git.conf
|
|
mode: 0644
|
|
owner: root
|
|
group: root
|
|
notify: restart nginx
|