1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Update add_host example in AWS Guide

The add_host module now uses "groups" instead of "groupname" to allow for specifying more than one group.
This commit is contained in:
Henry Todd 2015-03-21 13:21:55 +08:00
parent 08896e2cfd
commit 10e14d0e0a

View file

@ -107,7 +107,7 @@ From this, we'll use the add_host module to dynamically create a host group cons
register: ec2 register: ec2
- name: Add all instance public IPs to host group - name: Add all instance public IPs to host group
add_host: hostname={{ item.public_ip }} groupname=ec2hosts add_host: hostname={{ item.public_ip }} groups=ec2hosts
with_items: ec2.instances with_items: ec2.instances
With the host group now created, a second play at the bottom of the the same provisioning playbook file might now have some configuration steps:: With the host group now created, a second play at the bottom of the the same provisioning playbook file might now have some configuration steps::