sap.sap_operations.pcs_fence_azure_arm_list_info module – Get list of hosts from Azure fence ARM

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.pcs_fence_azure_arm_list_info.

New in sap.sap_operations 1.4.0-galaxy

Synopsis

  • Get list of hosts from Azure fence ARM

  • This module will execute command fence_azure_arm --action=list and process results to present them nicely in Ansible

  • If fence_azure_arm is not installed, module will fail

  • Required user with permissions to execute pcs --version --full command

Parameters

Parameter

Comments

msi

boolean

Use MSI authentication

Choices:

  • false ← (default)

  • true

password

string

Password for Azure authentication

Required if msi is set to false

resource_group

string

Resource group name

subscription_id

string

Subscription ID for Azure authentication

tenant_id

string

Tenant ID for Azure authentication

username

string

Username for Azure authentication

Required if msi is set to false

Notes

Note

  • This module is experimental

  • Module interface (parameters, output) might change in future releases

  • Module interface (parameters, output) might change in future patches

  • Module might be removed in future releases

  • Module released only on Ansible galaxy and is not yet planned to be released on Ansible Automation Hub

Return Values

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

Key

Description

hosts

list / elements=string

List of hosts

Returned: success

Sample: ["host1", "host2", "host3"]

rc

integer

Return code of the command executed

Returned: success

Sample: 0

stderr

string

Standard error of the command executed

Returned: success

Sample: ""

stdout

string

Standard output of the command executed

Returned: success

Sample: "host1,host2,host3"

Authors

  • Kirill Satarin (@kksat)