Hi,
I have created the playbook using uri to fetch the LC logs. I'm pasting the task as well as the error.
Please help me why this is failing. Thanks in advance!
Error:
fatal: []: FAILED! => {"changed": false, "msg": "unknown url type: 'https//[]/redfish/v1/Managers/iDRAC.Embedded.1/Dell/DellLCService/Actions/DellLCService.ExportCompleteLCLog'", "status": -1, "url": "https//[]/redfish/v1/Managers/iDRAC.Embedded.1/Dell/DellLCService/Actions/DellLCService.ExportCompleteLCLog"}
Hi,
I have created the playbook using uri to fetch the LC logs. I'm pasting the task as well as the error.
Please help me why this is failing. Thanks in advance!
name: Get the complete LC Logs
hosts: local
gather_facts: no
become: False
vars:
idrac: "{{user}}"
lc_log_url: Dell/DellLCService/Actions/DellLCService.ExportCompleteLCLog
tasks:
name: get manager id
uri:
url: "https://{{ idrac }}/redfish/v1/Managers"
user: "{{ user }}"
url_password: "{{ password }}"
validate_certs: no
register: resource_manager
name: store manager_id as fact
set_fact:
manager_id: "{{ id }}"
name: Get the LC log from the url
uri:
url: "https//{{idrac}}{{manager_id}}/{{lc_log_url}}"
user: "{{ user }}"
url_password: "{{ password }}"
validate_certs: no
body_format: json
method: "POST"
headers:
Accept: "/"
force_basic_auth: yes
status_code: 400
register: lc_log
Error:
fatal: []: FAILED! => {"changed": false, "msg": "unknown url type: 'https//[]/redfish/v1/Managers/iDRAC.Embedded.1/Dell/DellLCService/Actions/DellLCService.ExportCompleteLCLog'", "status": -1, "url": "https//[]/redfish/v1/Managers/iDRAC.Embedded.1/Dell/DellLCService/Actions/DellLCService.ExportCompleteLCLog"}