forgejo/tasks/install.yml

29 lines
646 B
YAML

---
- name: '[INSTALL] - Install dependencies'
apt:
name: "{{ gitea_apt_list }}"
update_cache: yes
- name: '[INSTALL] - Download gitea binary'
get_url:
url: 'https://github.com/go-gitea/gitea/releases/download/v{{ gitea_version }}/gitea-{{ gitea_version }}-linux-amd64'
dest: '{{ gitea_bindir }}/gitea'
mode: '0750'
owner: '{{ gitea_user }}'
group: '{{ gitea_group }}'
force: 'yes'
notify: 'Restart gitea'
- name: '[INSTALL] - Set rights to read-only'
file:
path: '/etc/gitea'
mode: '0750'
- name: '[INSTALL] - Set rights to read-only'
file:
path: '/etc/gitea/app.ini'
mode: '0640'