Compare commits
2 commits
9b8b740177
...
4d8d21bfe6
Author | SHA1 | Date | |
---|---|---|---|
4d8d21bfe6 | |||
cdc3d842a5 |
1 changed files with 3 additions and 2 deletions
|
@ -6,13 +6,14 @@
|
|||
# den jeweiligen group/host-Vars!
|
||||
|
||||
- name: Check if Admin-User exists
|
||||
# no_log: true
|
||||
no_log: true
|
||||
become_user: gitea
|
||||
become: true
|
||||
ansible.builtin.command: |
|
||||
forgejo admin user list \
|
||||
--config "{{ gitea_configuration_path }}/gitea.ini"
|
||||
register: check
|
||||
changed_when: false
|
||||
|
||||
- name: Ensure Admin-User exists
|
||||
#no_log: true
|
||||
|
@ -25,5 +26,5 @@
|
|||
--password "{{ gitea_admin_user_pass }}" \
|
||||
--email "{{ gitea_admin_user }}@mgrote.net" \
|
||||
--admin
|
||||
when: 'not "{{ gitea_admin_user }}@mgrote.net" in check.stdout'
|
||||
when: 'not "gitea_admin_user@mgrote.net" in check.stdout'
|
||||
...
|
||||
|
|
Loading…
Reference in a new issue