25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

51 satır
1.3KB

  1. ---
  2. - name: gitea download dir
  3. file:
  4. path: /opt/gitea
  5. state: directory
  6. - name: gitea keyring
  7. command: gpg --no-default-keyring --keyring /opt/gitea/keyring.gpg
  8. --keyserver pool.sks-keyservers.net
  9. --recv 7C9E68152594688862D62AF62D9AE806EC1592E2
  10. register: _gitea_keyring_recv
  11. changed_when: '"import" in _gitea_keyring_recv.stderr'
  12. - name: gitea checksum
  13. uri:
  14. url: "{{ gitea_download_url }}.sha256"
  15. return_content: true
  16. register: _gitea_checksum
  17. - name: download gitea signature
  18. get_url:
  19. url: "{{ gitea_download_url }}.asc"
  20. dest: "/opt/gitea/{{ gitea_download_filename }}.asc"
  21. force: true
  22. register: _gitea_download_signature
  23. - name: download gitea
  24. get_url:
  25. url: "{{ gitea_download_url }}"
  26. dest: "/opt/gitea/{{ gitea_download_filename }}"
  27. checksum: "sha256:{{_gitea_checksum.content.split(' ')|first}}"
  28. - name: verify gitea signature
  29. command: gpg --no-default-keyring --keyring /opt/gitea/keyring.gpg
  30. --verify "/opt/gitea/{{ gitea_download_filename }}.asc"
  31. "/opt/gitea/{{ gitea_download_filename }}"
  32. changed_when: false
  33. - name: gitea executable
  34. file:
  35. path: /opt/gitea/{{ gitea_download_filename }}
  36. mode: u=rwx,g=rx,o=rx
  37. - name: make gitea binary available on system
  38. file:
  39. src: /opt/gitea/{{ gitea_download_filename }}
  40. dest: /usr/local/bin/gitea
  41. state: link