diff options
-rw-r--r-- | roles/openshift_aws/tasks/master_facts.yml | 4 | ||||
-rw-r--r-- | roles/openshift_aws/tasks/setup_master_group.yml | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/roles/openshift_aws/tasks/master_facts.yml b/roles/openshift_aws/tasks/master_facts.yml index 6e716d11a..737cfc7a6 100644 --- a/roles/openshift_aws/tasks/master_facts.yml +++ b/roles/openshift_aws/tasks/master_facts.yml @@ -5,8 +5,8 @@ names: - "{{ item }}" with_items: - - "{{ openshift_aws_clusterid }}-master-external" - - "{{ openshift_aws_clusterid }}-master-internal" + - "{{ openshift_aws_elb_name }}-external" + - "{{ openshift_aws_elb_name }}-internal" delegate_to: localhost register: elbs diff --git a/roles/openshift_aws/tasks/setup_master_group.yml b/roles/openshift_aws/tasks/setup_master_group.yml index 90233a689..166f3b938 100644 --- a/roles/openshift_aws/tasks/setup_master_group.yml +++ b/roles/openshift_aws/tasks/setup_master_group.yml @@ -22,14 +22,14 @@ - name: add new master to masters group add_host: groups: "masters,etcd,nodes" - name: "{{ item.public_ip_address }}" + name: "{{ item.public_dns_name }}" hostname: "{{ openshift_aws_clusterid }}-master-{{ item.id[:-5] }}" with_items: "{{ instancesout.instances }}" - name: wait for ssh to become available wait_for: port: 22 - host: "{{ item.public_ip_address }}" + host: "{{ item.public_dns_name }}" timeout: 300 search_regex: OpenSSH with_items: "{{ instancesout.instances }}" |