blob: 872a43a5ca6add64acfb18f81aef1bf1aaeee458 (
plain) (
tree)
|
|
- name: Install cgit, Nginx
pkgng:
state: present
name:
- cgit
- nginx
- fcgiwrap
- security/py-certbot-nginx
- name: Create git directory
file:
path: /opt/git
state: directory
owner: www
group: www
recurse: yes
- name: Create Nginx conf directory
file:
path: /usr/local/etc/nginx/conf.d
state: directory
recurse: yes
- name: Render nginx config file
template:
src: nginx.conf.j2
dest: "/usr/local/etc/nginx/nginx.conf"
mode: 0644
- name: Render nginx config file
template:
src: cgit.conf.j2
dest: "/usr/local/etc/nginx/conf.d/cgit.conf"
mode: 0644
# TODO
# create certbot https certificate
# test nginx conf
# reload nginx conf
# create git user
# git user permission
|