I am new to ansible and trying to create issues in jira using ansible loops concept.
For each jira key (ANS, SEL, PYC) need to create 5 following issues
Code:
Requirements
Deployment
Analysis
Build
Delivery
I've written following code
Code:
---
- name: create jira issues for multiple project keys
jira:
uri: http://jiraurlhost:8080
username: user
password: pass
project: {{ item.0 }}
operation: create
summary: {{ item.1 }}
description: Created using Ansible
issuetype: Task
with_nested:
- [ ANS, SEL, PYC ]
- [ Requirements, Deployment, Analysis, Build, Delivery ]
I tried using with_nested as well but ansible throws error. How can I solve this problem.