Compare commits

..

No commits in common. "4d8d21bfe6039acf402638637eeb416373f64f75" and "9b8b740177b666cc9c5aafa4299e072e01e26be7" have entirely different histories.

View file

@ -6,14 +6,13 @@
# 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
@ -26,5 +25,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'
...