No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cgit.yml 870B

1234567891011121314151617181920212223242526
  1. - name: Download cgit release
  2. get_url: url=http://git.zx2c4.com/cgit/snapshot/cgit-{{ cgit_version }}.tar.xz
  3. dest=/root/cgit-{{ cgit_version }}.tar.xz
  4. - name: Decompress cgit source
  5. command: tar xvfJ /root/cgit-{{ cgit_version }}.tar.xz
  6. chdir=/root
  7. creates=/root/cgit-{{ cgit_version }}/configure
  8. - name: Build and install cgit
  9. shell: make get-git ; make ; make install
  10. executable=/bin/bash
  11. chdir=/root/cgit-{{ cgit_version }}
  12. creates=/var/www/htdocs/cgit/cgit.cgi
  13. - name: Copy cgit apache config
  14. template: src=etc_apache2_sites-available_cgit.j2
  15. dest=/etc/apache2/sites-available/cgit
  16. group=www-data
  17. owner=www-data
  18. notify: restart apache
  19. - name: Enable the cgit server
  20. command: a2ensite cgit creates=/etc/apache2/sites-enabled/cgit
  21. notify: restart apache