community / community.general / 1.3.11 / module / stacki_host Add or remove host to stacki front-end Authors: Hugh Ma (@bbyhuy) <Hugh.Ma@flextronics.com>community.general.stacki_host (1.3.11) — module
Install with ansible-galaxy collection install community.general:==1.3.11
collections: - name: community.general version: 1.3.11
Use this module to add or remove hosts to a stacki front-end via API.
U(https://github.com/StackIQ/stacki)
- name: Add a host named test-1 community.general.stacki_host: name: test-1 stacki_user: usr stacki_password: pwd stacki_endpoint: url prim_intf_mac: mac_addr prim_intf_ip: x.x.x.x prim_intf: eth0
- name: Remove a host named test-1 community.general.stacki_host: name: test-1 stacki_user: usr stacki_password: pwd stacki_endpoint: url state: absent
name: description: - Name of the host to be added to Stacki. required: true type: str state: choices: - absent - present description: - Set value to the desired state for the specified host. type: str prim_intf: description: - Name of the primary network interface. type: str stacki_user: description: - Username for authenticating with Stacki API, but if not specified, the environment variable C(stacki_user) is used instead. required: true type: str prim_intf_ip: description: - IP Address for the primary network interface. type: str force_install: default: false description: - Set value to True to force node into install state if it already exists in stacki. type: bool prim_intf_mac: description: - MAC Address for the primary PXE boot network interface. type: str stacki_endpoint: description: - URL for the Stacki API Endpoint. required: true type: str stacki_password: description: - Password for authenticating with Stacki API, but if not specified, the environment variable C(stacki_password) is used instead. required: true type: str
changed: description: response to whether or not the api call completed successfully returned: always sample: true type: bool stdout: description: the set of responses from the commands returned: always sample: - '...' - '...' type: list stdout_lines: description: the value of stdout split into a list returned: always sample: - - '...' - '...' - - '...' - - '...' type: list