Compare commits

...

2 Commits

Author SHA1 Message Date
Michael Grote 4d8d21bfe6 ff
ci/woodpecker/push/gitleaks Pipeline was successful Details
ci/woodpecker/push/ansible-lint Pipeline failed Details
2024-05-13 11:52:04 +02:00
Michael Grote cdc3d842a5 ff 2024-05-13 11:51:22 +02:00
1 changed files with 3 additions and 2 deletions

View File

@ -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'
...