add_host

Collection: builtin

Full Name: add_host

Controller module — runs on the local controller, not on remote hosts.

Synopsis

Manage add host

Parameters

NameTypeRequiredDefaultDescription
namestringyesThe hostname/IP of the host to add to the inventory
groupslistThe groups to add the hostname to
groupstringAlias for groups (for backward compatibility)

Example

- name: Example add_host task
  add_host:
    name: <your_name>