--- - 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