mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Mostly var cleanup across ~80 files
This commit is contained in:
parent
a6112381a3
commit
814efd5a02
88 changed files with 679 additions and 260 deletions
|
@ -4,14 +4,12 @@
|
|||
systemd:
|
||||
name: gitea
|
||||
state: stopped
|
||||
#tags: pre-install
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Ensure group gitea exists
|
||||
group:
|
||||
name: gitea
|
||||
state: present
|
||||
#tags: pre-install
|
||||
|
||||
- name: Create user gitea
|
||||
user:
|
||||
|
@ -19,7 +17,6 @@
|
|||
comment: Gitea daemon account
|
||||
groups: gitea
|
||||
home: "{{ gitea_home }}"
|
||||
#tags: pre-install
|
||||
|
||||
- name: Create Gitea directory structure
|
||||
file:
|
||||
|
@ -28,7 +25,6 @@
|
|||
owner: gitea
|
||||
group: gitea
|
||||
with_items: "{{ gitea_subdirectories }}"
|
||||
#tags: pre-install
|
||||
|
||||
- name: Make directories data, indexers, and log writable
|
||||
file:
|
||||
|
@ -38,7 +34,6 @@
|
|||
- data
|
||||
- indexers
|
||||
- log
|
||||
#tags: pre-install
|
||||
|
||||
# Download, verify, and link Gitea binary
|
||||
|
||||
|
@ -59,24 +54,21 @@
|
|||
get_url:
|
||||
url: "{{ gitea_integrity_url }}"
|
||||
dest: "{{ gitea_checksum_path }}"
|
||||
#tags: never, verify
|
||||
when: internet_available | bool
|
||||
|
||||
- name: Verify Gitea binary with GPG signature
|
||||
shell: |
|
||||
gpg --keyserver pgp.mit.edu --recv {{ gitea_gpg_key }}
|
||||
gpg --verify {{ gitea_checksum_path }} {{ gitea_install_path }}
|
||||
#tags: never, verify
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Link Gitea
|
||||
- name: Symlink {{ gitea_link_path }} -> {{ gitea_install_path }}
|
||||
file:
|
||||
src: "{{ gitea_install_path }}"
|
||||
dest: "{{ gitea_link_path }}"
|
||||
path: "{{ gitea_link_path }}"
|
||||
owner: gitea
|
||||
group: gitea
|
||||
state: link
|
||||
#tags: install
|
||||
|
||||
# Configure Gitea
|
||||
|
||||
|
@ -87,12 +79,11 @@
|
|||
|
||||
- name: Create Gitea config directory
|
||||
file:
|
||||
path: /etc/gitea
|
||||
state: directory
|
||||
path: /etc/gitea
|
||||
owner: root
|
||||
group: gitea
|
||||
mode: '0770'
|
||||
#tags: config
|
||||
|
||||
- name: Create app.ini
|
||||
template:
|
||||
|
@ -110,7 +101,14 @@
|
|||
dest: "{{ item.dest }}"
|
||||
with_items:
|
||||
- { src: 'gitea.service.j2', dest: '/etc/systemd/system/gitea.service' }
|
||||
- { src: 'gitea.conf.j2', dest: "/etc/{{ apache_config_dir }}/gitea.conf" }
|
||||
- { src: 'gitea.conf.j2', dest: "/etc/{{ apache_conf_dir }}/gitea.conf" }
|
||||
|
||||
|
||||
# RECORD Gitea AS INSTALLED
|
||||
|
||||
- name: "Set 'gitea_installed: True'"
|
||||
set_fact:
|
||||
gitea_installed: True
|
||||
|
||||
- name: "Add 'gitea_installed: True' to {{ iiab_state_file }}"
|
||||
lineinfile:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue