Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

f5 token based authentication using uri module throw error

reddev12
Altocumulus
Altocumulus

using below yml file with header as below and token is variable authx . error i am getting is "authx is undefined"

is the header correct ?

 ---
- name: "{{ name }}"
uri:
url: "{{ url }}"
method: "GET"
headers:
X-F5-Auth-Token: "{{ authx }}"
validate_certs: "no"
status_code: "{{ status|default(200) }}"
timeout: 60
ignore_errors: True
delegate_to: localhost

 

@JRahm 

3 REPLIES 3

JRahm
Community Manager
Community Manager

what tool is this yaml for and how is it being used?

remotely we will execute the ansible script ...and token is created from other script and kept as ansible vars ...just want to place that token variable in this yaml

url will contain f5 rest api 

JRahm
Community Manager
Community Manager

authx variable isn't populating, so that will need to be solved before you can troubleshoot anything else. what does that playbook look like?