This commit is contained in:
Michael Grote 2024-04-03 23:52:29 +02:00
parent faaf7bcf72
commit c30097b394
2 changed files with 3 additions and 0 deletions
roles/mgrote_gitea_setup/tasks

View file

@ -7,6 +7,7 @@
- name: Ensure Admin-User exists
no_log: true
become_user: gitea
become: true
ansible.builtin.command: |
forgejo admin user create \
--config /etc/gitea/gitea.ini

View file

@ -7,6 +7,7 @@
- name: Ensure LDAP config is set up
no_log: true
become_user: gitea
become: true
ansible.builtin.command: |
forgejo admin auth add-ldap \
--config "{{ gitea_configuration_path }}/gitea.ini" \
@ -32,6 +33,7 @@
- name: Modify LDAP config
no_log: true
become_user: gitea
become: true
ansible.builtin.command: |
forgejo admin auth update-ldap \
--config "{{ gitea_configuration_path }}/gitea.ini" \