sap.sap_operations.saphostagent_sar role – Install SAP hostagent from SAR archive

Note

This role 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.saphostagent_sar.

Entry point __author__ – Author Information

Synopsis

  • Kirill Satarin (@kksat)

Entry point __dependencies__ – Dependencies

Synopsis

  • Role depend on sap.sap_operations.unpack role, \ see requirements and documentation for that role

  • Role requires user to be able to become root to run

Entry point __examples__ – Example Playbooks

Synopsis

    • name: Install saphostagent from SAR file

  • hosts: all

  • gather_facts: false

  • tasks:

    • name: Install saphostagent from SAR file

  • ansible.builtin.include_role:

  • name: sap.sap_operations.saphostagent_sar

  • vars:

  • saphostagent_sar_source: /software/sap/SAPHOSTAGENT<SP-version>.SAR

Entry point __license__ – License

Synopsis

  • GPL-3.0-only

Entry point __limitations__ – Limitations

Synopsis

  • Only supported on linux and darwin (macos) systems

Entry point main – Install SAP hostagent from SAR archive

Synopsis

  • Install SAP hostagent from SAR archive

  • Role will unpack SAR archive \ and run saphostagent command to install saphostagent

  • Role will check if there is file \ ‘/usr/sap/hostctrl/exe/saphostexec’ \ if this file exists role will do nothing

Parameters

Parameter

Comments

saphostagent_sar_source

path / required

Exact path to SAR archive for saphostagent \ not just folder with that archive