Compare commits

..

2 commits

Author SHA1 Message Date
4d8d21bfe6 ff
Some checks failed
ci/woodpecker/push/gitleaks Pipeline was successful
ci/woodpecker/push/ansible-lint Pipeline failed
2024-05-13 11:52:04 +02:00
cdc3d842a5 ff 2024-05-13 11:51:22 +02:00

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