summaryrefslogtreecommitdiff
path: root/inventory
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2015-02-12 23:57:39 -0500
committerBrian Coca <brian.coca+git@gmail.com>2015-02-12 23:58:07 -0500
commit18792f4e48e90e9a260a24005996860722f482b7 (patch)
tree3bc52e2d8e7577762e5a1bf3d2923df460892a96 /inventory
parent4ba2d55589210c4018f0e561a308f1f4f4a485a8 (diff)
downloadansible-modules-core-18792f4e48e90e9a260a24005996860722f482b7.tar.gz
added note to add_hosts about loop bypass
Diffstat (limited to 'inventory')
-rw-r--r--inventory/add_host.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/inventory/add_host.py b/inventory/add_host.py
index 4fd4e1eb..0f1b84ab 100644
--- a/inventory/add_host.py
+++ b/inventory/add_host.py
@@ -5,7 +5,7 @@ DOCUMENTATION = '''
module: add_host
short_description: add a host (and alternatively a group) to the ansible-playbook in-memory inventory
description:
- - Use variables to create new hosts and groups in inventory for use in later plays of the same playbook.
+ - Use variables to create new hosts and groups in inventory for use in later plays of the same playbook.
Takes variables so you can define the new hosts more fully.
version_added: "0.9"
options:
@@ -13,12 +13,15 @@ options:
aliases: [ 'hostname', 'host' ]
description:
- The hostname/ip of the host to add to the inventory, can include a colon and a port number.
- required: true
+ required: true
groups:
aliases: [ 'groupname', 'group' ]
description:
- The groups to add the hostname to, comma separated.
required: false
+notes:
+ - This module bypasses the play host loop and only runs once for all the hosts in the play, if you need it
+ to iterate use a with_ directive.
author: Seth Vidal
'''