---
- name: Your Playbook
hosts: localhost
tasks:
- name: when jenkins job is created
debug:
msg: "{ Job doesn't exist on any of the jenkins so Created the job on https://<
jenkinsbuild.com> }"
when: your_condition_here
register: jenkins_output
- name: Save Repo Names to File
# Your task definition here
- name: Filter Repo Names
# Your task definition here
- name: Debug Job Info
debug:
var: repos_list
when: jenkins_output|default(false)