Log directory under /var/log

This commit is contained in:
Andrea Dell'Amico 2021-06-22 19:14:50 +02:00
parent aff29825ef
commit e9c501d646
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 9 additions and 0 deletions

View File

@ -16,6 +16,7 @@ gitea_data_subdirs:
- data
- log
gitea_log_dir: /var/log/gitea
gitea_socket_dir: /run/gitea
gitea_repository_data: '{{ gitea_data_dir }}/repositories'
gitea_max_repository_per_user: 200

View File

@ -27,6 +27,14 @@
group: '{{ gitea_group }}'
mode: 0755
- name: Create the gitea log directory
file:
dest: '{{ gitea_log_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