initial version of git server role

This commit is contained in:
Timo Makinen 2019-05-17 11:37:46 +03:00
parent 87744518c7
commit 3a6ceec53c
4 changed files with 112 additions and 0 deletions

View file

@ -0,0 +1,35 @@
---
- 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