Make integration runner ec2 add_hosts use valid host names

This commit is contained in:
James Cammarata 2015-12-18 14:59:05 -05:00
parent 1cc83dd0d9
commit 02f65eaa80

View file

@ -30,7 +30,7 @@
- name: Add hosts group temporary inventory group with pem path - name: Add hosts group temporary inventory group with pem path
add_host: add_host:
name: "{{ item.1.platform }} {{ ec2.results[item.0]['instances'][0]['public_ip'] }}" name: "{{ item.1.platform }}-{{ ec2.results[item.0]['instances'][0]['public_ip'] }}"
groups: dynamic_hosts groups: dynamic_hosts
ansible_ssh_host: "{{ ec2.results[item.0]['instances'][0]['public_ip'] }}" ansible_ssh_host: "{{ ec2.results[item.0]['instances'][0]['public_ip'] }}"
ansible_ssh_private_key_file: '{{ pem_path }}' ansible_ssh_private_key_file: '{{ pem_path }}'