Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

72 lignes
1.2KB

  1. ---
  2. # - name: allow gitea executable to bind on privileged port
  3. # capabilities:
  4. # path: /usr/local/bin/gitea
  5. # capability: cap_sys_chroot+eip
  6. # state: present
  7. - name: git user
  8. user:
  9. name: git
  10. system: yes
  11. home: /srv/git
  12. - name: gitea home directory
  13. file:
  14. path: /srv/git
  15. mode: u=rwx,g=rx,o=rx
  16. owner: git
  17. group: git
  18. state: directory
  19. - name: gitea repos directory
  20. file:
  21. path: /srv/git/repos
  22. mode: u=rwx,g=rx,o=rx
  23. owner: git
  24. group: git
  25. state: directory
  26. - name: gitea work directory
  27. file:
  28. path: /var/lib/gitea
  29. mode: u=rwx,g=rx,o=rx
  30. owner: git
  31. group: git
  32. state: directory
  33. - name: gitea config directory
  34. file:
  35. path: /etc/gitea
  36. mode: u=rwx,g=rx,o=rx
  37. owner: git
  38. group: git
  39. state: directory
  40. - name: gitea log directory
  41. file:
  42. path: /var/log/gitea
  43. mode: u=rwx,g=rx,o=rx
  44. owner: git
  45. group: git
  46. state: directory
  47. - import_tasks: config.yml
  48. - name: systemd service unit
  49. template:
  50. src: systemd.service.j2
  51. dest: /etc/systemd/system/gitea.service
  52. notify:
  53. - systemd daemon-reload
  54. - restart gitea
  55. - name: gitea started
  56. systemd:
  57. name: gitea.service
  58. state: started