redeployment forgejo + setup ldap #1

Merged
mg merged 123 commits from gb into master 2024-04-04 09:48:10 +02:00
2 changed files with 3 additions and 0 deletions
Showing only changes of commit c30097b394 - Show all commits

View file

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

View file

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