Heads up! On March 5, starting at 4:30 PM Central Time, our community will be undergoing scheduled maintenance for a few hours. During this time, you will find the site temporarily inaccessible. Thanks for your patience. Read more.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Jira module not supporting token

Vysh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 2, 2023

Im trying to create a issue using jira module in ansible tower and it is not accepting token as a parameter,

{ "_ansible_no_log": false, "invocation": { "module_args": { "project": "***", "token": "***", "description": "This sub-task is responsible for system updates on all VMs.", "issuetype": "Task", "operation": "create", "uri": "***", "summary":  OS patching[Q1-Q2 2023]" } }, "changed": false, "msg": "Unsupported parameters for (jira) module: token Supported parameters include: assignee, comment, description, fields, inwardissue, issue, issuetype, linktype, operation, outwardissue, password, project, status, summary, timeout, uri, username, validate_certs"

When I pass username and password it still throws me 401,

"msg": "HTTP Error 401: "

 

When I run the same playbook from my machine through ansible-playbook it works fine

2 answers

1 accepted

0 votes
Answer accepted
Vysh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 3, 2023

Got the solution. I updated the collections(community.general) in my ansible tower . It worked. Posting the solution for others to know,

 

https://docs.ansible.com/ansible-tower/latest/html/userguide/projects.html#collections-support

0 votes
German March 2, 2023

I'll try to look this and test.

Suggest an answer

Log in or Sign up to answer