2020-04-04 07:06:25 -05:00
|
|
|
---
|
2021-01-27 08:13:02 -06:00
|
|
|
- name: run checks to ensure gitea_oauth2_jwt_secret do not crash gitea and is idempotent
|
2020-04-04 07:06:25 -05:00
|
|
|
block:
|
2020-04-20 09:28:18 -05:00
|
|
|
- name: "check token length"
|
|
|
|
fail:
|
2021-01-27 08:13:02 -06:00
|
|
|
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
|