Environment via Template Datei setzen
This commit is contained in:
@@ -34,6 +34,13 @@
|
||||
enabled: yes
|
||||
state: started
|
||||
|
||||
- name: Upload Environment File
|
||||
ansible.builtin.template:
|
||||
src: environment.env.j2
|
||||
dest: "{{ git_user.home }}/gitea/environment.env"
|
||||
owner: "{{ git_user.name }}"
|
||||
mode: '600'
|
||||
|
||||
- name: Create Gitea container
|
||||
community.docker.docker_container:
|
||||
name: gitea
|
||||
@@ -52,23 +59,4 @@
|
||||
- "3000:3000"
|
||||
- "22:2222"
|
||||
user: "{{ git_user.uid }}:{{ git_user.group }}"
|
||||
env:
|
||||
USER_UID: "{{ git_user.uid }}"
|
||||
USER_GID: "{{ git_user.group }}"
|
||||
GITEA__APP_NAME: "{{ gitea.app_name }}"
|
||||
GITEA__RUN_USER: "{{ git_user.name }}"
|
||||
GITEA__server__ROOT_URL: "https://{{ system.hostname }}.{{ system.domain }}/"
|
||||
GITEA__server__Domain: "{{ system.hostname }}.{{ system.domain }}"
|
||||
GITEA__server__SSH_PORT: "22"
|
||||
GITEA__service__DISABLE_REGISTRATION: "{{ gitea.service.disable_registration }}"
|
||||
GITEA__service__REQUIRE_SIGNIN_VIEW: "{{ gitea.service.require_signin_view }}"
|
||||
GITEA__service__REGISTER_EMAIL_CONFIRM: "{{ gitea.service.register_email_confirm }}"
|
||||
GITEA__service__ENABLE_NOTIFY_MAIL: "{{ gitea.service.enable_notify_mail }}"
|
||||
GITEA__service__DEFAULT_KEEP_EMAIL_PRIVATE: "{{ gitea.service.default_keep_email_private }}"
|
||||
GITEA__service__DEFAULT_ALLOW_CREATE_ORGANIZATION: "{{ gitea.service.default_allow_create_organization }}"
|
||||
GITEA__service__DEFAULT_ENABLE_TIMETRACKING: "{{ gitea.service.default_enable_timetracking }}"
|
||||
GITEA__mailer__ENABLED: "{{ gitea.mailer.enabled }}"
|
||||
GITEA__mailer__FROM: "git@{{ system.hostname }}.{{ system.domain }}"
|
||||
GITEA__repository__ENABLE_PUSH_CREATE_USER: "{{ gitea.repository.enable_push_create_user }}"
|
||||
GITEA__repository__ENABLE_PUSH_CREATE_ORG: "{{ gitea.repository.enable_push_create_org }}"
|
||||
GITEA__repository__DEFAULT_PUSH_CREATE_PRIVATE: "{{ gitea.repository.default_push_create_private }}"
|
||||
env_file: "{{ git_user.home }}/gitea/environment.env"
|
||||
|
Reference in New Issue
Block a user