Requirements
Ansible playbook tasks using modules from the IBM Z HMC collection must be configured to run on the control node (= local host). From there, the modules communicate remotely with the WS API of the targeted HMCs.
There are multiple approaches on how this can be configured:
The recommended approach uses an Ansible inventory and delegation of the tasks to localhost, by specifying
connection: localfor the playbook oransible_connection: localin the inventory, anddelegate_to: localhostfor each task that uses a module of the IBM Z HMC collection.A simpler but more limited approach uses no Ansible inventory and specifies
connection: localandhosts: localhostfor the entire playbook.
For more details on these approaches, see the description and sample playbooks in IBM Z HMC Sample Playbooks.
Control node
Requirements for the Ansible control node are:
The control node must have network connectivity to the targeted HMC.