gitea socket under /run/gitea.
This commit is contained in:
parent
2ee566b187
commit
197a0b2c14
|
@ -15,13 +15,13 @@ gitea_data_subdirs:
|
|||
- custom
|
||||
- data
|
||||
- log
|
||||
- sock
|
||||
|
||||
gitea_socket_dir: /run/gitea
|
||||
gitea_repository_data: '{{ gitea_data_dir }}/repositories'
|
||||
gitea_max_repository_per_user: 200
|
||||
|
||||
gitea_server_protocol: unix
|
||||
gitea_http_addr: '{{ gitea_data_dir }}/sock/gitea.sock'
|
||||
gitea_http_addr: '{{ gitea_socket_dir }}/gitea.sock'
|
||||
gitea_http_port: 3000
|
||||
gitea_root_url: https://{{ ansible_fqdn }}
|
||||
|
||||
|
|
|
@ -19,6 +19,14 @@
|
|||
- name: Create the gitea conf directory
|
||||
file: dest={{ gitea_conf_dir }} state=directory owner=root group={{ gitea_group }} mode=0750
|
||||
|
||||
- name: Create the gitea socket directory
|
||||
file:
|
||||
dest: '{{ gitea_socket_dir }}'
|
||||
state: directory
|
||||
owner: '{{ gitea_user }}'
|
||||
group: '{{ gitea_group }}'
|
||||
mode: 0755
|
||||
|
||||
- name: Download the gitea binary
|
||||
get_url: url={{ gitea_download_url }} dest={{ gitea_bin_path }} owner=root group={{ gitea_group }} mode=0750
|
||||
|
||||
|
@ -45,6 +53,14 @@
|
|||
- gitea_app_configurations is defined
|
||||
notify: restart gitea
|
||||
|
||||
- name: Create the tmpfile entry for the gitea socket directory
|
||||
template:
|
||||
src: tmpfile_gitea.conf.j2
|
||||
dest: /usr/lib/tmpfiles.d/gitea.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
||||
- name: Install the gitea configuration file. At install time only
|
||||
template: src=app.ini.j2 dest={{ gitea_conf_dir }}/app.ini owner={{ gitea_user }} group={{ gitea_group }} mode=0640 force=no
|
||||
notify: restart gitea
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
d {{ gitea_socket_dir }} 0775 {{ gitea_user }} {{ gitea_group }}
|
Loading…
Reference in New Issue