Skip to content

Commit e47f244

Browse files
authored
Merge pull request #699 from redhatci/gitea_jwt_secret
Gitea: retrying creating the container secrets
2 parents 369df0f + 14b913b commit e47f244

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

roles/setup_gitea/tasks/install.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
detach: false
2525
changed_when: false
2626
register: _sg_jwt_secret
27+
retries: 5
28+
delay: 10
29+
until: not _sg_jwt_secret.failed
2730
no_log: true
2831

2932
- name: Generate the LFS JWT secret
@@ -35,6 +38,9 @@
3538
detach: false
3639
changed_when: false
3740
register: _sg_lfs_jwt_secret
41+
retries: 5
42+
delay: 10
43+
until: not _sg_lfs_jwt_secret.failed
3844
no_log: true
3945

4046
- name: Generate the internal token
@@ -46,6 +52,9 @@
4652
detach: true
4753
changed_when: false
4854
register: _sg_internal_token
55+
retries: 5
56+
delay: 10
57+
until: not _sg_internal_token.failed
4958
no_log: true
5059

5160
- name: Generate the secret key
@@ -57,6 +66,9 @@
5766
detach: true
5867
changed_when: false
5968
register: _sg_secret_key
69+
retries: 5
70+
delay: 10
71+
until: not _sg_secret_key.failed
6072
no_log: true
6173

6274
- name: Create Secret with the Gitea configuration
@@ -87,7 +99,7 @@
8799
register: _sg_gitea_healthz
88100
retries: 10
89101
delay: 10
90-
until: _sg_gitea_healthz is not failed
102+
until: not _sg_gitea_healthz.failed
91103

92104
- name: Create the initial user
93105
when: sg_username | default("") != ""

0 commit comments

Comments
 (0)