Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

6 лет назад
6 лет назад
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. ---
  2. - name: debian packages
  3. apt:
  4. pkg: "{{item}}"
  5. with_items:
  6. - ca-certificates
  7. - git
  8. - golang
  9. - name: download gitea
  10. get_url:
  11. url: "{{ gitea_download_url }}"
  12. dest: /usr/local/bin/gitea
  13. checksum: "{{ gitea_download_checksum }}"
  14. notify:
  15. - restart gitea
  16. - name: gitea executable
  17. file:
  18. path: /usr/local/bin/gitea
  19. mode: u=rwx,g=rx,o=rx
  20. # - name: allow gitea executable to bind on privileged port
  21. # capabilities:
  22. # path: /usr/local/bin/gitea
  23. # capability: cap_sys_chroot+eip
  24. # state: present
  25. - name: git user
  26. user:
  27. name: git
  28. system: yes
  29. home: /srv/git
  30. - name: gitea home directory
  31. file:
  32. path: /srv/git
  33. mode: u=rwx,g=rx,o=rx
  34. owner: git
  35. group: git
  36. state: directory
  37. - name: gitea repos directory
  38. file:
  39. path: /srv/git/repos
  40. mode: u=rwx,g=rx,o=rx
  41. owner: git
  42. group: git
  43. state: directory
  44. - name: gitea work directory
  45. file:
  46. path: /var/lib/gitea
  47. mode: u=rwx,g=rx,o=rx
  48. owner: git
  49. group: git
  50. state: directory
  51. - name: gitea config directory
  52. file:
  53. path: /etc/gitea
  54. mode: u=rwx,g=rx,o=rx
  55. owner: git
  56. group: git
  57. state: directory
  58. - name: gitea log directory
  59. file:
  60. path: /var/log/gitea
  61. mode: u=rwx,g=rx,o=rx
  62. owner: git
  63. group: git
  64. state: directory
  65. - import_tasks: config.yml
  66. - name: systemd service unit
  67. template:
  68. src: systemd.service.j2
  69. dest: /etc/systemd/system/gitea.service
  70. notify:
  71. - systemd daemon-reload
  72. - restart gitea
  73. - name: gitea started
  74. systemd:
  75. name: gitea.service
  76. state: started