Apologize for the error that , it was a typo tbh. Well the issue is still
present.

Thanks
Reehan

On Thu, Sep 1, 2022, 11:56 PM Dick Visser <dnmvis...@gmail.com> wrote:

>
>
> On Thu, 1 Sep 2022 at 19:45, Mohammed Reehan <mohd.ree...@gmail.com>
> wrote:
>
>> Hello Experts,
>>
>> Need your kind help, i am running a basic POST call using ansible uri
>> module with Basic Authencation
>> below is the programtic code but i am getting 403 error.
>>
>> ---
>> -name: Request API Token
>>  ansible.builtin.uri:
>>    url: "https://vrlcm.local/lcm/authzn/api/login";
>>
>
> For starters the url is incorrect, it's got a
> Semicolon mixed by a double quote
>
>
> method: POST
>>    use_proxy: no
>>    validate_certs: false
>>    status_code: [200]
>>    force_basic_auth: yes
>>    url_username: "test"
>>    url_password: "test"
>>  register: response
>>  run_once: true
>>  delegate_facts: true
>>  no_log: false
>>
>> i am getting below error, any pointers will be helpful to fix this issue.
>> i am sure i am doing something silly.
>>
>> "msg": "status code was -1 and not [200]: Request failed: <urlopen error
>> tunnel connection failed: 403 forribidden>",
>> "redirected": "false",
>> "status": "-1"
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ansible Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to ansible-project+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/a4f107cf-28d8-46d8-9d56-b5760799408cn%40googlegroups.com
>> <https://groups.google.com/d/msgid/ansible-project/a4f107cf-28d8-46d8-9d56-b5760799408cn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> Sent from Gmail Mobile
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAF8BbLYYHhLtaP9iVfk29gsNN_SK3orJEP7%3DFrh2aARZtBJ0vg%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAF8BbLYYHhLtaP9iVfk29gsNN_SK3orJEP7%3DFrh2aARZtBJ0vg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJOW%3Dx__o0H2%3D5czJS10atcQwEa7Y14QRdZ8zSRJ_Fq5Z6oG6g%40mail.gmail.com.

Reply via email to