I'm using the IBM z/OS CICS collection for Ansible. I need to be able to find all CICS regions that contain a particular program, and automate that on a regular basis.
I have CMCI set up and have tested that. I can also get all programs like this:
  tasks:
    - name: 'Get all programs'
      delegate_to: 'localhost'
      ibm.ibm_zos_cics.cmci_get:
        type: 'CICSProgram'
        scope: [redacted]
I'm not quite sure how I should filter the programs or how I should map the result into the CICS region name, and return it as a comma-separated list.