Need help with adding multiple hosts

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 }}”