Hi
Any help on this greatly appreciated.
Actually i am new to this, I am writing an yaml file to create JIRA ticket through ansible.
I have the script to connect to JIRA, But i got the error
"Skipping no hosts matched" on execution.
this is the script i have:
also if possible anyone can share me a working sample script to create jira ticket
---
- hosts: "{{host_name}}"
remote_user: "{{run_user}}"
vars_prompt:
- name: user name
prompt: "Enter the username"
private: no
- name: password
prompt: "Enter the password"
tasks:
- name: connecting to jira
uri:
url: https://jira.global.xxxxxx.com
user: '{{user name}}'
password: '{{password}}'
method: GET
return_content: yes
status_code: 200
register: Status
- debug:
var: Status.stdout_lines
Playbook itself has great example to create Jira Ticket.
What error you are getting?
https://docs.ansible.com/ansible/latest/modules/jira_module.html#examples
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.