ec2_win_password comes back empty

Hi all,

I’m running Ansible 2.0.1 and I’m trying to get a newly provisioned EC2 instance’s Windows password. However, something is off. Anybody got an idea?

`

Solution, wait for the resource to come back with a password:

`

  • name: obtain initial passwords for win ec2 instances
    ec2_win_password:
    instance_id: “{{ item.id }}”
    key_file: “~/aws-creds/ec2key.pem”
    wait: yes
    wait_timeout: 600
    with_items: win_ec2_instances.instances
    register: win_ec2_passwords
    `