--- domain: "gitea.localhost" gitea_system_user: "{{ domain | regex_replace('[^A-Za-z0-9-]+', '-') }}" gitea_service_name: "{{ domain }}.service" gitea_user_directory: "{{ global_webservers_directory }}/{{ domain }}" gitea_installation_directory: "{{ gitea_user_directory }}/bin" gitea_custom_directory: "{{ gitea_installation_directory }}/custom" gitea_repositories_directory: "{{ gitea_user_directory }}/repositories" gitea_binary_path: "{{ gitea_installation_directory }}/gitea" gitea_socket_path: "{{ gitea_user_directory }}/gitea.socket" gitea_configuration_path: "{{ gitea_custom_directory }}/app.ini" database_user: "gitea" # database_pass from mysql/database # database_name from mysql/database gitea_internal_token: "{{ lookup('password', 'credentials/' + inventory_hostname + '/gitea/' + domain + '/internal_token length=80') }}" gitea_cookie_secret: "{{ lookup('password', 'credentials/' + inventory_hostname + '/gitea/' + domain + '/secret_key length=80') }}" gitea_lfs_jwt_secret: "{{ lookup('password', 'credentials/' + inventory_hostname + '/gitea/' + domain + '/lfs_jwt_secret length=43') }}" gitea_oauth_jwt_secret: "{{ lookup('password', 'credentials/' + inventory_hostname + '/gitea/' + domain + '/oauth_jwt_secret length=80') }}" gitea_update_script: "update_gitea.sh" gitea_update_script_path: "{{ update_scripts_directory }}/{{ domain }}"