diff --git a/ansible/roles/mjb-profile-store/files/gitea-1.17.1-linux-amd64 b/ansible/roles/mjb-profile-store/files/gitea-1.17.1-linux-amd64 deleted file mode 100755 index cf8ae68..0000000 Binary files a/ansible/roles/mjb-profile-store/files/gitea-1.17.1-linux-amd64 and /dev/null differ diff --git a/ansible/roles/mjb-profile-store/files/gitea-1.17.1-linux-amd64.tgz b/ansible/roles/mjb-profile-store/files/gitea-1.17.1-linux-amd64.tgz new file mode 100644 index 0000000..e9a9d7b Binary files /dev/null and b/ansible/roles/mjb-profile-store/files/gitea-1.17.1-linux-amd64.tgz differ diff --git a/ansible/roles/mjb-profile-store/tasks/gitea.yml b/ansible/roles/mjb-profile-store/tasks/gitea.yml index bac3568..18044af 100644 --- a/ansible/roles/mjb-profile-store/tasks/gitea.yml +++ b/ansible/roles/mjb-profile-store/tasks/gitea.yml @@ -45,6 +45,16 @@ group: git mode: 0770 +# Store gitea-1.17.1-linux-amd64 as gitea-1.17.1-linux-amd64.tgz in the repo to +# cut the size in half and have GitHub allow it to be hosted there. Unpack locally. +- name: Unpack gitea-1.17.1-linux-amd64 + delegate_to: localhost + shell: + tar -xzf gitea-1.17.1-linux-amd64.tgz + args: + chdir: "{{ role_path }}/files/" + creates: "{{ role_path }}/files/gitea-1.17.1-linux-amd64" + - name: Install /usr/local/bin/gitea copy: dest: /usr/local/bin/gitea @@ -61,7 +71,7 @@ # instead. - name: Install /var/lib/gitea copy: - dest: /var/lib/gitea + dest: /var/lib/gitea/gitea src: "{{ role_path }}/files/gitea-1.17.1-linux-amd64" owner: root group: root