tower_credential module is failing

23 views
Skip to first unread message

Vinod Patil

unread,
Nov 1, 2018, 2:58:22 AM11/1/18
to Ansible Project
Hi ,

I am using tower_credential module to create a credential on ansible tower. 

Ansible tower version 3.3.0
ansible tower CLI verison 3.3.0 


ansible module used - tower_credential 




However I am getting the error -

fatal: [XXXXXXXXX.hsbc]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Shared connection to XXXXXXXXX.hsbc closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_4Vbytv/ansible_module_tower_credential.py\", line 292, in <module>\r\n main()\r\n File \"/tmp/ansible_4Vbytv/ansible_module_tower_credential.py\", line 277, in main\r\n result = credential.modify(**params)\r\n File \"/opt/ansible/20171031/python/lib/python2.7/site-packages/tower_cli/models/base.py\", line 698, in modify\r\n return self.write(pk, create_on_missing=create_on_missing, force_on_exists=True, **kwargs)\r\n File \"/opt/ansible/20171031/python/lib/python2.7/site-packages/tower_cli/models/base.py\", line 378, in write\r\n raise exc.BadRequest('Missing required fields: %s' % ', '.join(missing_fields).replace('_', '-'))\r\ntower_cli.exceptions.BadRequest: Missing required fields: credential-type\r\n", "msg": "MODULE FAILURE", "rc": 0}


 Can anyone please help here. 
Red hat has clearly denied to support saying that this is community support and raise it there.


Thanks,
Vinod


Ankit Vashistha

unread,
Nov 1, 2018, 5:18:23 AM11/1/18
to ansible...@googlegroups.com
Did you notice it says, tower_cli.exceptions.BadRequest: Missing required fields: credential-type

Have you selected the credentials type?

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0f1b088d-295c-459c-a69a-096a1837abb9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vinod Patil

unread,
Nov 1, 2018, 6:10:59 AM11/1/18
to ansible...@googlegroups.com
Yes i have used the "kind" option. Verified that i am using all required options of tower_credential

Jonathan Lozada De La Matta

unread,
Nov 1, 2018, 7:12:18 AM11/1/18
to ansible...@googlegroups.com
as far as I know that module does not work with versions newer than 3.1


For more options, visit https://groups.google.com/d/optout.
--

Jonathan lozada de la matta

AUTOMATION PRACTICE



 

Reply all
Reply to author
Forward
0 new messages