Scale node error "AnsibleUndefinedVariable: 'dict object' has no attribute 'address'"

Dear All,

I’m newbie kubernetes and kubespray. When i add new node to cluster, i had error message:

TASK [etcd : Gen_certs | write openssl config] *************************************************************************************************************
Thursday 30 May 2019 22:29:47 +0700 (0:00:00.265) 0:01:21.954 **********
fatal: [node1 → 172.16.20.133]: FAILED! => {“changed”: false, “msg”: “AnsibleUndefinedVariable: ‘dict object’ has no attribute ‘address’”}

Please help me fix it. Tks!

You need to paste the task and sample output from the task being processed in later tasks. Without it, we can’t really identify what is stored in the variable to start with.

Have you done a

  • debug:
    var=(your var here)

to see what the data structure looks like to ansible?