# Template\_type == job\_template

**URL:** <https://forum.ansible.com/t/template-type-job-template/8729>\
**Category:** Get Help\
**Tags:** aap\
**Created:** [September 24, 2024, 1:36pm UTC](https://forum.ansible.com/t/template-type-job-template/8729 "2024-09-24T13:36:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![M-K](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@M-K](https://forum.ansible.com/u/M-K)\
**Post date:** [September 24, 2024, 1:36pm UTC](https://forum.ansible.com/t/template-type-job-template/8729/1 "2024-09-24T13:36:04Z")

</div>

Hello,

Ansible template error not found

---

<div class="post-metadata">

**Author:** ![Denney-tech](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/denney-tech/32/1556_2.png) [@Denney-tech](https://forum.ansible.com/u/Denney-tech)\
**Post date:** [September 24, 2024, 1:50pm UTC](https://forum.ansible.com/t/template-type-job-template/8729/2 "2024-09-24T13:50:36Z")

</div>

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).

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

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [October 24, 2024, 1:50pm UTC](https://forum.ansible.com/t/template-type-job-template/8729/3 "2024-10-24T13:50:43Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
