Error creating Cluster on windows 2012 R2 Server through Ansible

Hi,

I am using ansible to create Cluster on windows 2012 R2 Server where i am getting issues like

access denied on new cluster command on adding the second node to the cluster.#

I am using kerberos authentication since i needed to login using domain account as opposed to local account. Also i am using PYWINRM to connect.#

s = winrm.Session(‘192.X.X.X’,auth=(‘Administrator@CORP.LOCAL’, ‘anything’), transport=‘kerberos’)r = s.run_ps(“”“New-Cluster -Name mycluster -Node firstcomputer.CORP.LOCAL,secondcomputer.CORP.LOCAL -StaticAddress 192.X.X.X”“”)

Please help.

Thanks,
Ashish

Hello,

I think you need to allow delegation of credentials in order to avoid the ‘second hop’ issue. See my answer here: https://groups.google.com/forum/#!topic/ansible-project/BbKicPxQztI

Hope this helps,

Jon