설명 없음
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 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. - name: Install cgit dependencies
  2. apt: pkg={{ item }} state=installed
  3. with_items:
  4. - groff
  5. - python-pip
  6. - name: Install cgit pip dependencies
  7. pip: name={{ item }}
  8. with_items:
  9. - pygments
  10. - docutils
  11. - name: Download cgit release
  12. get_url: url=http://git.zx2c4.com/cgit/snapshot/cgit-{{ cgit_version }}.tar.xz
  13. dest=/root/cgit-{{ cgit_version }}.tar.xz
  14. - name: Decompress cgit source
  15. command: tar xvfJ /root/cgit-{{ cgit_version }}.tar.xz
  16. chdir=/root
  17. creates=/root/cgit-{{ cgit_version }}/configure
  18. - name: Build and install cgit
  19. shell: make get-git ; make ; make install
  20. executable=/bin/bash
  21. chdir=/root/cgit-{{ cgit_version }}
  22. creates=/var/www/htdocs/cgit/cgit.cgi
  23. - name: Copy cgitrc
  24. template: src=etc_cgitrc.j2 dest=/etc/cgitrc
  25. group=www-data
  26. owner=www-data
  27. - name: Configure the Apache HTTP server for cgit
  28. template: src=etc_apache2_sites-available_cgit.j2
  29. dest=/etc/apache2/sites-available/cgit
  30. group=www-data
  31. owner=www-data
  32. notify: restart apache
  33. - name: Enable Apache cgi module
  34. command: a2enmod cgi creates=/etc/apache2/mods-enabled/cgi.load
  35. notify: restart apache
  36. - name: Enable Apache rewrite module
  37. command: a2enmod rewrite creates=/etc/apache2/mods-enabled/rewrite.load
  38. notify: restart apache
  39. - name: Enable cgit site
  40. command: a2ensite cgit creates=/etc/apache2/sites-enabled/cgit
  41. notify: restart apache