File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3
3
4
4
- name : Add nodes to hadoop-cluster and {{ outer_loop.host_group }} groups
5
5
add_host :
6
- name : " {{ (outer_loop.public_ip|default(false)== true ) | ternary(hostvars[local_loop].ec2_dns_name ,hostvars[local_loop].ec2_private_dns_name ) }}"
7
- ansible_host : " {{ (outer_loop.public_ip|default(false)== true ) | ternary(hostvars[local_loop].ec2_ip_address ,hostvars[local_loop].ec2_private_ip_address ) }}"
6
+ name : " {{ (outer_loop.public_ip|default(false)) | ternary(hostvars[local_loop].public_dns_name ,hostvars[local_loop].private_dns_name ) }}"
7
+ ansible_host : " {{ (outer_loop.public_ip|default(false)) | ternary(hostvars[local_loop].public_ip_address ,hostvars[local_loop].private_ip_address ) }}"
8
8
ansible_user : " {{ cloud_config.admin_username|default('root') }}"
9
9
ansible_ssh_private_key_file : " {{ cloud_config.ssh.privatekey }}"
10
10
ansible_become_user : root
You can’t perform that action at this time.
0 commit comments