initial version of git server role
This commit is contained in:
parent
87744518c7
commit
3a6ceec53c
4 changed files with 112 additions and 0 deletions
35
roles/git/server/tasks/main.yml
Normal file
35
roles/git/server/tasks/main.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue