Update to 2020-05-12 11:00

master
Daniel Berteaud 4 years ago
parent f218dc70f8
commit ffd8c7c8c2
  1. 4
      roles/gitea/defaults/main.yml
  2. 20
      roles/gitea/tasks/conf.yml
  3. 19
      roles/gitea/tasks/facts.yml

@ -1,11 +1,11 @@
---
# Version to install
gitea_version: 1.11.4
gitea_version: 1.11.5
# URL to the binary
gitea_bin_url: https://dl.gitea.io/gitea/{{ gitea_version }}/gitea-{{ gitea_version }}-linux-amd64
# sha256 of the binary
gitea_bin_sha256: 4408c781069c36cbb1b5923ae924e67ceee661ba9c9bd6c73cd7408c9cd62af6
gitea_bin_sha256: d8d43c13e71596c79b541e85e29defe065b4f70ac5155e6d0212bcfc669e1b9c
# Handle updates. If set to false, ansible will only install
# Gitea and then won't touch an existing installation
gitea_manage_upgrade: True

@ -1,5 +1,25 @@
---
- name: Create random tokens
shell: "{{ gitea_root_dir }}/bin/gitea generate secret {{ item }} > {{ gitea_root_dir }}/meta/ansible_{{ item }}"
args:
creates: "{{ gitea_root_dir }}/meta/ansible_{{ item }}"
with_items:
- INTERNAL_TOKEN
- LFS_JWT_SECRET
- SECRET_KEY
tags: gitea
- name: Read random tokens
command: cat {{ gitea_root_dir }}/meta/ansible_{{ item }}
with_items:
- INTERNAL_TOKEN
- LFS_JWT_SECRET
- SECRET_KEY
changed_when: False
register: gitea_tokens
tags: gitea
- name: Set sclo-git212 as default git command
template: src=git.sh.j2 dest=/etc/profile.d/git.sh mode=755
tags: gitea

@ -25,22 +25,3 @@
when: gitea_db_pass is not defined
tags: gitea
- name: Create random tokens
shell: "{{ gitea_root_dir }}/bin/gitea generate secret {{ item }} > {{ gitea_root_dir }}/meta/ansible_{{ item }}"
args:
creates: "{{ gitea_root_dir }}/meta/ansible_{{ item }}"
with_items:
- INTERNAL_TOKEN
- LFS_JWT_SECRET
- SECRET_KEY
tags: gitea
- name: Read random tokens
command: cat {{ gitea_root_dir }}/meta/ansible_{{ item }}
with_items:
- INTERNAL_TOKEN
- LFS_JWT_SECRET
- SECRET_KEY
changed_when: False
register: gitea_tokens
tags: gitea

Loading…
Cancel
Save