aboutsummaryrefslogblamecommitdiff
blob: 375bd8fffded5d820f2f75de0c5959f8653ae06c (plain) (tree)
1
2
3
4
5
6
7
8
9







                                 
                       































                                                 


                   
- name: Install cgit, Nginx
  pkgng:
    state: present
    name:
      - cgit
      - nginx
      - fcgiwrap
      - security/py-certbot-nginx
      - py39-virtualenv

- 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
# gitolite config
# create virtualenv
# cgit filters
Powered by cgit v1.2.3 (git 2.41.0)