admin: removing credential to obtain 404 error

When the users endpoint doesn't need auth, but if the credential are
  incorrect it return a code 401. Not adding 401 as expected status_code
  to avoid confusion in case of wrong credential with existing user

Signed-off-by: Alexis Pentori <alexis@status.im>
This commit is contained in:
Alexis Pentori 2023-11-17 14:27:51 +01:00
parent 6c40ef08bf
commit 9e978c0d94
No known key found for this signature in database
GPG Key ID: 65250D2801E47A10
1 changed files with 0 additions and 3 deletions

View File

@ -10,9 +10,6 @@
url: '{{ gitea_app_cont_web_url }}/api/v1/users/{{ gitea_app_admin_user }}'
status_code: [200, 404]
return_content: true
user: '{{ gitea_app_admin_user | mandatory }}'
password: '{{ gitea_app_admin_pass | mandatory }}'
force_basic_auth: true
register: gitea_admin_user_raw
- name: Create main Gitea admin user