linter
All checks were successful
ci/woodpecker/push/gitleaks Pipeline was successful
ci/woodpecker/pr/gitleaks Pipeline was successful
ci/woodpecker/push/ansible-lint Pipeline was successful
ci/woodpecker/pr/ansible-lint Pipeline was successful

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

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" \