Template_type == job_template

Hello,

Ansible template error not found

Can you share your playbook, please? The error says your template_type variable is undefined. Where or how is it supposed to be defined? Going by the task name, it sounds like you want to delete whatever object might have been created and errored, but maybe you’re trying to delete something that didn’t even get created? There’s not enough information here for us to help you with.

When you share your playbook (or errors), please format it in a code block. Code blocks start and stop with a line of triple backticks: ```, and the first line can also accept the name of common code languages for formatting, such as yaml (but it will try to automatically match the best language formatting).

- name: example code block
  hosts: all
  tasks:
    - name: Delete job template, project , inventory if created before failures
...