Forum Discussion
f5 token based authentication using uri module throw error
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
- JRahmAdmin
what tool is this yaml for and how is it being used?
- reddev12Altocumulus
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
- JRahmAdmin
authx variable isn't populating, so that will need to be solved before you can troubleshoot anything else. what does that playbook look like?
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com