roles/server/gitea: Fixed creating credentials

wip
Felix Stupp 5 years ago
parent ec446f4986
commit a408ba3e86
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -14,10 +14,13 @@ gitea_socket_path: "{{ gitea_user_directory }}/gitea.socket"
gitea_configuration_path: "{{ gitea_custom_directory }}/app.ini"
gitea_database_user: "gitea"
gitea_database_pass: "{{ lookup('password', '/etc/ansible-credentials/mysql/' + gitea_database_user + ' length=80' ) }}"
gitea_database_pass: "{{ lookup('password', 'credentials/' + inventory_hostname + '/mysql/' + gitea_database_user + ' length=80') }}"
gitea_database_name: "{{ gitea_database_user }}"
gitea_cookie_secret: "{{ lookup('password', '/etc/ansible-credentials/cookies/' + domain + ' length=80') }}"
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: "{{ gitea_installation_directory }}/{{ gitea_update_script }}"

Loading…
Cancel
Save