diff --git a/roles/gitea/defaults/main.yaml b/roles/gitea/defaults/main.yaml index bbd3f65..b00e416 100644 --- a/roles/gitea/defaults/main.yaml +++ b/roles/gitea/defaults/main.yaml @@ -3,10 +3,8 @@ gitea_service_name: gitea.service gitea_service_state: started gitea_service_enabled: yes -gitea_arch: amd64 -gitea_version: 1.11.5 +gitea_version: 1.12.2 gitea_url: "https://dl.gitea.io/gitea/{{ gitea_version }}/gitea-{{ gitea_version }}-linux-{{ gitea_arch }}" -gitea_checksum: sha256:d8d43c13e71596c79b541e85e29defe065b4f70ac5155e6d0212bcfc669e1b9c gitea_bin_path: /usr/local/bin gitea_var_path: /var/lib/gitea gitea_log_path: /var/log/gitea diff --git a/roles/gitea/tasks/main.yaml b/roles/gitea/tasks/main.yaml index dd43e06..dae9945 100644 --- a/roles/gitea/tasks/main.yaml +++ b/roles/gitea/tasks/main.yaml @@ -1,12 +1,14 @@ --- -#- name: OS specific variables -# include_vars: "{{ item }}" -# with_first_found: -# - "{{ ansible_distribution }}-{{ ansible_distribution_version }}.yml" -# - "{{ ansible_distribution }}.yml" -# - "{{ ansible_os_family }}.yml" -# - "default.yml" -# +- name: gather architecture specific variables + include_vars: "{{ lookup('first_found', possible_files) }}" + vars: + possible_files: + files: + - "{{ ansible_userspace_architecture }}.yaml" + - "default.yaml" + paths: + - vars + - name: "download gitea {{ gitea_version }}" get_url: url: "{{ gitea_url }}" diff --git a/roles/gitea/vars/x86_64.yaml b/roles/gitea/vars/x86_64.yaml new file mode 100644 index 0000000..eb9ad46 --- /dev/null +++ b/roles/gitea/vars/x86_64.yaml @@ -0,0 +1,3 @@ +--- +gitea_arch: amd64 +gitea_checksum: sha256:3faa3e97a621c3b9ecba7917fd870c07c3c6c88c8cc7c29ecbf2c7b9802d91b0