sap.sap_operations.swdc_auth_info module – Fetch http requests headers to communicate with SAP software download center (SWDC)

Note

This module is part of the sap.sap_operations collection.

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install sap.sap_operations.

To use it in a playbook, specify: sap.sap_operations.swdc_auth_info.

New in sap.sap_operations 1.30.0

Synopsis

Parameters

Parameter

Comments

password

string / required

password of the username.

url

string / required

URL to fetch headers for

username

string / required

username of SAP support portal. Either universal id or suser.

Notes

Note

  • This module is community supported

  • Module interface (parameters, output) expected to be stable but not guaranteed

  • Module planned to be released on Ansible Automation Hub after collecting some feedback

  • There is no guarantee that this module will be officially supported by Red Hat

Examples

---
- name: Run swdc_auth_info
  sap.sap_operations.swdc_auth_info:
    username: "{{ lookup('ansible.builtin.env', 'LP_EMAIL') }}"
    password: "{{ lookup('ansible.builtin.env', 'LP_PASSWORD') }}"
    url: https://softwaredownloads.sap.com/file/0020000000098712022

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

swdc_auth_info

dictionary

List of dictionaries with information about download basket items

Returned: success

Sample: {"Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Cookie": "IDP_SESSION_MARKER_accounts=; IDP_USER=; JSESSIONID=; SESSIONID=; __HOST-IDP_J_COOKIE=; __HOST-XSRF_COOKIE=; __HOST-authIdentifierData=", "User-Agent": "My User Agent 1.0"}

Accept

string

Accept header

Returned: success

Sample: "*/*"

Accept-Encoding

string

Accept-Encoding header

Returned: success

Sample: "gzip, deflate"

Connection

string

Connection header

Returned: success

Sample: "keep-alive"

string

Cookie header

Returned: success

Sample: "IDP_SESSION_MARKER_accounts=; IDP_USER=; JSESSIONID=; SESSIONID=; __HOST-IDP_J_COOKIE=; __HOST-XSRF_COOKIE=; __HOST-authIdentifierData="

Authors

  • Kirill Satarin (@kksat)