项目作者: DasLeo

项目描述 :
Ansible Role - Gitea
高级语言: Python
项目地址: git://github.com/DasLeo/ansible-role-gitea.git
创建时间: 2019-06-28T20:28:10Z
项目社区:https://github.com/DasLeo/ansible-role-gitea

开源协议:

下载


Ansible Role for Gitea - a Sourcecode Management Server

This Ansible role can be used to install and keep your Gitea server up to date.
Gitea is a Git server with a great web interface such as GitHub.
Please take a look at the official Gitea Site for more information on Gitea.

Host Vars

  1. # Systemd service user
  2. gitea_user: gitea
  3. gitea_version: 1.8.3
  4. gitea_directory: /var/lib/gitea
  5. gitea_disable_ssh: 'false'
  6. gitea_domain: git.example.net
  7. gitea_root_url: 'https://git.example.net/'
  8. gitea_ssh_domain: git.example.net
  9. gitea_ssh_port: 22
  10. gitea_http_port: 3000
  11. gitea_mailer_host: 'mailserver.example.net:587'
  12. gitea_mailer_from: '"Gitea" <gitea@example.net>'
  13. gitea_mailer_user: ''
  14. gitea_mailer_passwd: ''
  15. gitea_mailer_skip_ssl_verify: 'true'
  16. gitea_disable_registration: 'true'
  17. gitea_no_reply_address: noreply.example.net
  18. # memory , redis or memcache
  19. gitea_cache_adapter: memory
  20. # cache interval in seconds (only for memory adapter)
  21. gitea_cache_interval: 60
  22. # gitea_cache_host examples (multiple backends separated by ";")
  23. # Redis: network=tcp,addr=127.0.0.1:6379,password=macaron,db=0,pool_size=100,idle_timeout=180
  24. # Memache: 127.0.0.1:9090;127.0.0.1:9091
  25. gitea_cache_host: ''
  26. # garbage collection interval in seconds (default: 1 day)
  27. gitea_gc_interval_time: 86400

Updating Gitea

This Ansible role automatically compares the installed version with the version set by gitea_version and upgrades if gitea_version is higher than the currently installed one.

License

Copyright

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.