casl-ansible icon indicating copy to clipboard operation
casl-ansible copied to clipboard

Install fails if openshift_master_cluster_public_hostname not set

Open etsauer opened this issue 7 years ago • 1 comments

I think this is actually a contrib issue now, but need to look into it further.

Failure summary:

  1. Host:     localhost
     Play:     localhost
     Task:     openshift-ansible-contrib/roles/dns-records : Add public master cluster hostname records to the private A records (single master)
     Message:  The conditional check 'hostvars[groups.masters[0]].openshift_master_cluster_public_hostname is defined' failed. The error was: error while evaluating conditional (hostvars[groups.masters[0]].openshift_master_cluster_public_hostname is defined): list object has no element 0
               
               The error appears to have been in '/tmp/src/casl-ansible/roles/openshift-ansible-contrib/roles/dns-records/tasks/main.yml': line 12, column 3, but may
               be elsewhere in the file depending on the exact syntax problem.
               
               The offending line appears to be:
               
               
               - name: "Add public master cluster hostname records to the private A records (single master)"
                 ^ here

etsauer avatar Oct 25 '17 23:10 etsauer

@etsauer I ran into the same error tonight. I had changed the dns suffix in the all.yaml but I had not updated the hosts file. After both match the error went away.

huddlesj avatar Feb 09 '19 04:02 huddlesj