add_host
Collection: builtin
Full Name: add_host
Controller module — runs on the local controller, not on remote hosts.
Synopsis
Manage add host
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| name | string | yes | The hostname/IP of the host to add to the inventory | |
| groups | list | The groups to add the hostname to | ||
| group | string | Alias for groups (for backward compatibility) |
Example
- name: Example add_host task
add_host:
name: <your_name>