|
|
@ -20,44 +20,50 @@
|
|
|
|
file:
|
|
|
|
file:
|
|
|
|
path: "{{ gitea_user_directory }}"
|
|
|
|
path: "{{ gitea_user_directory }}"
|
|
|
|
state: directory
|
|
|
|
state: directory
|
|
|
|
mode: 0750
|
|
|
|
owner: "{{ gitea_system_user }}"
|
|
|
|
|
|
|
|
group: "{{ nginx_system_user }}"
|
|
|
|
|
|
|
|
mode: "u=rwx,g=rx"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Configure installation directory
|
|
|
|
- name: Configure installation directory
|
|
|
|
file:
|
|
|
|
file:
|
|
|
|
path: "{{ gitea_installation_directory }}"
|
|
|
|
path: "{{ gitea_installation_directory }}"
|
|
|
|
state: directory
|
|
|
|
state: directory
|
|
|
|
owner: "root"
|
|
|
|
owner: "{{ gitea_system_user }}"
|
|
|
|
group: "root"
|
|
|
|
group: "{{ gitea_system_user }}"
|
|
|
|
mode: 0755
|
|
|
|
mode: "u=rwx,g=rx"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Configure custom directory
|
|
|
|
- name: Configure custom directory
|
|
|
|
file:
|
|
|
|
file:
|
|
|
|
path: "{{ gitea_custom_directory }}"
|
|
|
|
path: "{{ gitea_custom_directory }}"
|
|
|
|
state: directory
|
|
|
|
state: directory
|
|
|
|
mode: 0750
|
|
|
|
owner: "{{ gitea_system_user }}"
|
|
|
|
|
|
|
|
group: "{{ gitea_system_user }}"
|
|
|
|
|
|
|
|
mode: "u=rwx,g=rx"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Configure repositories directory
|
|
|
|
- name: Configure repositories directory
|
|
|
|
file:
|
|
|
|
file:
|
|
|
|
path: "{{ gitea_repositories_directory }}"
|
|
|
|
path: "{{ gitea_repositories_directory }}"
|
|
|
|
state: directory
|
|
|
|
state: directory
|
|
|
|
mode: 0750
|
|
|
|
owner: "{{ gitea_system_user }}"
|
|
|
|
|
|
|
|
group: "{{ gitea_system_user }}"
|
|
|
|
|
|
|
|
mode: "u=rwx,g=rx"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Configure gitea
|
|
|
|
- name: Configure gitea
|
|
|
|
template:
|
|
|
|
template:
|
|
|
|
dest: "{{ gitea_configuration_path }}"
|
|
|
|
dest: "{{ gitea_configuration_path }}"
|
|
|
|
group: "{{ gitea_system_user }}"
|
|
|
|
|
|
|
|
mode: 0640
|
|
|
|
mode: 0640
|
|
|
|
owner: root
|
|
|
|
owner: root
|
|
|
|
src: "app.ini"
|
|
|
|
src: "app.ini"
|
|
|
|
|
|
|
|
group: "{{ gitea_system_user }}"
|
|
|
|
register: gitea_configure
|
|
|
|
register: gitea_configure
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install auto update script for gitea
|
|
|
|
- name: Install auto update script for gitea
|
|
|
|
template:
|
|
|
|
template:
|
|
|
|
src: "{{ gitea_update_script }}"
|
|
|
|
src: "{{ gitea_update_script }}"
|
|
|
|
group: root
|
|
|
|
|
|
|
|
mode: 0744
|
|
|
|
|
|
|
|
owner: root
|
|
|
|
|
|
|
|
dest: "{{ gitea_update_script_path }}"
|
|
|
|
dest: "{{ gitea_update_script_path }}"
|
|
|
|
|
|
|
|
owner: root
|
|
|
|
|
|
|
|
group: root
|
|
|
|
|
|
|
|
mode: "u=rwx,g=rx,o=r"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Download gitea
|
|
|
|
- name: Download gitea
|
|
|
|
become_user: "{{ gitea_system_user }}"
|
|
|
|
become_user: "{{ gitea_system_user }}"
|
|
|
|