mirror of
https://github.com/roles-ansible/ansible_role_gitea.git
synced 2024-08-16 11:39:50 +02:00
67afb71160
* delete trailing whitespace * Add gitea_group This will add the `gitea_group: gitea` and will probably RESOLVE https://github.com/thomas-maurice/ansible-role-gitea/issues/70 * update variable length update variable length to make this role idempotent * vars should not include special character
14 lines
643 B
YAML
14 lines
643 B
YAML
---
|
|
- name: run checks to ensure gitea_oauth2_jwt_secret do not crash gitea and is idempotent
|
|
block:
|
|
- name: "check token length"
|
|
fail:
|
|
msg: 'gitea_oauth2_jwt_secret has to be 43 characters long. It is currently {{ gitea_oauth2_jwt_secret | length }} long.'
|
|
when: gitea_oauth2_jwt_secret | length != 43
|
|
|
|
- name: run checks to ensure gitea_lfs_jwt_secret do not crash gitea and is idempotent
|
|
block:
|
|
- name: "check token length"
|
|
fail:
|
|
msg: 'gitea_lfs_jwt_secret has to be 43 characters long. It is currently {{ gitea_lfs_jwt_secret | length }} long.'
|
|
when: gitea_lfs_jwt_secret | length != 43
|