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

Reply via email to