Need help with adding multiple hosts

11 views
Skip to first unread message

Eric S

unread,
May 18, 2016, 4:59:48 PM5/18/16
to Ansible Project
I'm trying to figure out why this is only adding one hosts after registering ec2
Ansible 2.0.2

- name: Add hosts group temporary inventory group
  add_host: name={{ item.private_ip }} groups=dynamic
  with_items: "{{ ec2.instances }}"
Reply all
Reply to author
Forward
0 new messages