New in version 2.3.
Parameter | Choices/Defaults | Comments |
---|---|---|
force_install | Set value to True to force node into install state if it already exists in stacki. | |
name required | Name of the host to be added to Stacki. | |
prim_intf | Name of the primary network interface. | |
prim_intf_ip | IP Address for the primary network interface. | |
prim_intf_mac | MAC Address for the primary PXE boot network interface. | |
stacki_endpoint required | URL for the Stacki API Endpoint. | |
stacki_password required | Password for authenticating with Stacki API, but if not specified, the environment variable stacki_password is used instead. | |
stacki_user required | Username for authenticating with Stacki API, but if not specified, the environment variable stacki_user is used instead. |
- name: Add a host named test-1 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 stacki_host: name: test-1 stacki_user: usr stacki_password: pwd stacki_endpoint: url state: absent
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
changed boolean | always | response to whether or not the api call completed successfully Sample: True |
stdout list | always | the set of responses from the commands Sample: ['...', '...'] |
stdout_lines list | always | the value of stdout split into a list Sample: [['...', '...'], ['...'], ['...']] |
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
This module is flagged as community which means that it is maintained by the Ansible Community. See Module Maintenance & Support for more info.
For a list of other modules that are also maintained by the Ansible Community, see here.
Hint
If you notice any issues in this documentation you can edit this document to improve it.
© 2012–2018 Michael DeHaan
© 2018 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.7/modules/stacki_host_module.html