mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-10 11:50:18 +01:00
Merge pull request #43 from tgerla/fixec2
Fix with_items variable syntax in ec2 example
This commit is contained in:
commit
93c899a287
1 changed files with 3 additions and 3 deletions
|
@ -28,17 +28,17 @@
|
|||
|
||||
- name: Add new instances to host group
|
||||
local_action: add_host hostname={{item.public_ip}} groupname=deploy
|
||||
with_items: ${ec2.instances}
|
||||
with_items: ec2.instances
|
||||
|
||||
- name: Wait for the instances to boot by checking the ssh port
|
||||
local_action: wait_for host={{item.public_dns_name}} port=22 delay=60 timeout=320 state=started
|
||||
with_items: ${ec2.instances}
|
||||
with_items: ec2.instances
|
||||
|
||||
# Use the ec2_vol module to create volumes for attachment to each instance. Use with_items to attach to each instance (by returned id) launched previously.
|
||||
|
||||
- name: Create a volume and attach
|
||||
local_action: ec2_vol volume_size=20 instance={{item.id}}
|
||||
with_items: ${ec2.instances}
|
||||
with_items: ec2.instances
|
||||
|
||||
# This play targets the new host group
|
||||
|
||||
|
|
Loading…
Reference in a new issue