mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-17 22:30:59 +00:00
Make integration runner ec2 add_hosts use valid host names
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
|
||||
- name: Add hosts group temporary inventory group with pem path
|
||||
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
|
||||
ansible_ssh_host: "{{ ec2.results[item.0]['instances'][0]['public_ip'] }}"
|
||||
ansible_ssh_private_key_file: '{{ pem_path }}'
|
||||
|
||||
Reference in New Issue
Block a user