From 9e978c0d944ff538892fa2c89433dd7fb1e5abb2 Mon Sep 17 00:00:00 2001 From: Alexis Pentori Date: Fri, 17 Nov 2023 14:27:51 +0100 Subject: [PATCH] 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 --- tasks/admin.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/tasks/admin.yml b/tasks/admin.yml index ead0e60..cee3cf3 100644 --- a/tasks/admin.yml +++ b/tasks/admin.yml @@ -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