ctucx.git: ansible-configs

My personal ansible roles and playbooks [deprecated in favor of nixos]

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
---

- name: Adding user nginx to group git
  user:
    user: "{{ services.nginx.user | default('http') }}"
    groups: git
    append: yes

- name: "[nginx] Create vhost" 
  template: 
    src: nginx-vhost.conf.j2
    dest: /etc/nginx/conf.d/cgit.conf
    mode: 0644
    owner: "{{ services.nginx.user | default('http') }}"
    group: "{{ services.nginx.group | default('http') }}"
  notify: "Restart nginx"