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 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 
---

- name: "Create fcgi-service for: cgit"
  file:
    src: /etc/init.d/spawn-fcgi
    dest: /etc/init.d/spawn-fcgi.cgit
    state: link
  when:
    - ansible_distribution == "Alpine"

- name: "Create config for cgit's fcgi-service"
  copy: 
    content: "FCGI_PORT=8001\nFCGI_PROGRAM=/usr/bin/fcgiwrap"
    dest: /etc/conf.d/spawn-fcgi.cgit
  when:
    - ansible_distribution == "Alpine"

- name: "Copy cgitrc to: /etc/cgitrc"
  copy: 
    src: "{{ services.cgit.configFile }}"
    dest: /etc/cgitrc
    mode: 0644
  when:
    - services.cgit.configFile is defined

- name: "Copy syntax-highlighting.sh to: /usr/local/bin"
  copy: 
    src: syntax-highlighting.sh
    dest: /usr/local/bin/syntax-highlighting.sh
    mode: 0755