sap.sap_operations.pcs_fence_azure_arm_list_info (1.25.0) — module

Get list of hosts from Azure fence ARM

| "added in version" 1.4.0-galaxy of sap.sap_operations"

Authors: Kirill Satarin (@kksat)

Install collection

Install with ansible-galaxy collection install sap.sap_operations:==1.25.0


Add to requirements.yml

  collections:
    - name: sap.sap_operations
      version: 1.25.0

Description

Get list of hosts from Azure fence ARM

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

If C(fence_azure_arm) is not installed, module will fail

Required user with permissions to execute C(pcs --version --full) command

Inputs

    
msi:
    default: false
    description:
    - Use MSI authentication
    required: false
    type: bool

password:
    description:
    - Password for Azure authentication
    - Required if C(msi) is set to false
    required: false
    type: str

username:
    description:
    - Username for Azure authentication
    - Required if C(msi) is set to false
    required: false
    type: str

tenant_id:
    description:
    - Tenant ID for Azure authentication
    required: false
    type: str

resource_group:
    description:
    - Resource group name
    required: false
    type: str

subscription_id:
    description:
    - Subscription ID for Azure authentication
    required: false
    type: str

Outputs

hosts:
  description: List of hosts
  elements: str
  returned: success
  sample:
  - host1
  - host2
  - host3
  type: list
rc:
  description: Return code of the command executed
  returned: success
  sample: 0
  type: int
stderr:
  description: Standard error of the command executed
  returned: success
  sample: ''
  type: str
stdout:
  description: Standard output of the command executed
  returned: success
  sample: host1,host2,host3
  type: str