# \#templating

**URL:** https://forum.ansible.com/tag/templating/434.md

[Latest](https://forum.ansible.com/latest.md) · [Categories](https://forum.ansible.com/categories.md) · [Tags](https://forum.ansible.com/tags.md)

---

## [Lazy templating and global variables in Ansible 2.19+](https://forum.ansible.com/t/lazy-templating-and-global-variables-in-ansible-2-19/45487)

<div class="topic-metadata">

**Author:** [@bozho](https://forum.ansible.com/u/bozho)\
**Replies:** 10\
**Last updated:** [March 9, 2026, 5:05pm UTC](https://forum.ansible.com/t/lazy-templating-and-global-variables-in-ansible-2-19/45487 "2026-03-09T17:05:24Z")

</div>

Hi all, We are in the process of upgrading from Ansible 2.18 to 2.20 and are aware that there were some significant changes to templating in 2.19. What would be the best practice for handling “undefined” variables in t…

---

## [CfgMgmtCamp 2026 discussion (2/12): Big changes don't seem to be properly tested](https://forum.ansible.com/t/cfgmgmtcamp-2026-discussion-2-12-big-changes-dont-seem-to-be-properly-tested/45289)

<div class="topic-metadata">

**Author:** [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Replies:** 2\
**Last updated:** [February 9, 2026, 6:40pm UTC](https://forum.ansible.com/t/cfgmgmtcamp-2026-discussion-2-12-big-changes-dont-seem-to-be-properly-tested/45289 "2026-02-09T18:40:50Z")

</div>

As a user Big changes don’t seem to be properly tested Latest developments This was discussed at CfgMgmtCamp 2026. I think the message arrived (and already had arrived in the past) that some of the problems around ansi…

---

## [Macro / endmacro in light of core-2.19 templating changes](https://forum.ansible.com/t/macro-endmacro-in-light-of-core-2-19-templating-changes/43209)

<div class="topic-metadata">

**Author:** [@utoddl](https://forum.ansible.com/u/utoddl)\
**Replies:** 18\
**Last updated:** [February 2, 2026, 8:22pm UTC](https://forum.ansible.com/t/macro-endmacro-in-light-of-core-2-19-templating-changes/43209 "2026-02-02T20:22:41Z")

</div>

Continuing the discussion from Core-2.19 templating changes - preview and testing: I’m curious if the 2.19 templating changes might affect (in a good way; fingers crossed) our chances of someday being able to use macro/e…

---

## [Ansible Network Automation - Issue Rendering Jinja2 Template - Invalid input](https://forum.ansible.com/t/ansible-network-automation-issue-rendering-jinja2-template-invalid-input/45109)

<div class="topic-metadata">

**Author:** [@IPvSean](https://forum.ansible.com/u/IPvSean)\
**Replies:** 0\
**Last updated:** [January 14, 2026, 9:31pm UTC](https://forum.ansible.com/t/ansible-network-automation-issue-rendering-jinja2-template-invalid-input/45109 "2026-01-14T21:31:25Z")

</div>

Recent community reports around Ansible network automation stem from a regression introduced in ansible-core 2.19 related to how network \*\_config modules handle templating of the src parameter. Historically, some network…

---

## [Non-aphabetic ordering of templated dict items](https://forum.ansible.com/t/non-aphabetic-ordering-of-templated-dict-items/44783)

<div class="topic-metadata">

**Author:** [@utoddl](https://forum.ansible.com/u/utoddl)\
**Replies:** 2\
**Last updated:** [November 4, 2025, 8:54pm UTC](https://forum.ansible.com/t/non-aphabetic-ordering-of-templated-dict-items/44783 "2025-11-04T20:54:15Z")

</div>

I’m pulling a bunch of dicts from an API, each of which looks something like the following after piping through to\_nice\_yaml: - createdAt: '2022-01-04T16:31:35Z' executionOrder: Parallel frequency: Weekly …

---

## [How a custom list can be created a using templates with ansible 12?](https://forum.ansible.com/t/how-a-custom-list-can-be-created-a-using-templates-with-ansible-12/44497)

<div class="topic-metadata">

**Author:** [@Roberto\_Majadas](https://forum.ansible.com/u/Roberto_Majadas)\
**Replies:** 3\
**Last updated:** [September 16, 2025, 4:11pm UTC](https://forum.ansible.com/t/how-a-custom-list-can-be-created-a-using-templates-with-ansible-12/44497 "2025-09-16T16:11:07Z")

</div>

In my playbooks I sometimes render a list of dicts in order to be used in a variable or in a loop. Something like this: - name: Configure repository's git\_config git\_config: name: "{{ item.config\_name }}" val…

---

## [Ansible.netcommon broken with Ansible Core 2.19.0](https://forum.ansible.com/t/ansible-netcommon-broken-with-ansible-core-2-19-0/44043)

<div class="topic-metadata">

**Author:** [@REDWINE](https://forum.ansible.com/u/REDWINE)\
**Replies:** 29\
**Last updated:** [August 22, 2025, 7:03am UTC](https://forum.ansible.com/t/ansible-netcommon-broken-with-ansible-core-2-19-0/44043 "2025-08-22T07:03:10Z")

</div>

All of my playbooks are failing after upgrading ansible-core from 2.18.7-1 to 2.19.0-1. A simple playbook such as: --- - name: Show info on cisco devices hosts: \<redacted\> connection: network\_cli gather\_facts: fa…

---

## [Import\_tasks unable to find relative file path](https://forum.ansible.com/t/import-tasks-unable-to-find-relative-file-path/44164)

<div class="topic-metadata">

**Author:** [@trisha-dell](https://forum.ansible.com/u/trisha-dell)\
**Replies:** 3\
**Last updated:** [July 31, 2025, 10:57am UTC](https://forum.ansible.com/t/import-tasks-unable-to-find-relative-file-path/44164 "2025-07-31T10:57:49Z")

</div>

I am unable to execute the import\_tasks with relative path. Following is the task: - name: Fetching power state of iDRAC ansible.builtin.import\_tasks: \_fetch\_uri.yml vars: uri: "/redfish/v1/Chassis/System.Embed…

---

## [How best to compare filesystem size against another number?](https://forum.ansible.com/t/how-best-to-compare-filesystem-size-against-another-number/44048)

<div class="topic-metadata">

**Author:** [@tacocat](https://forum.ansible.com/u/tacocat)\
**Replies:** 4\
**Last updated:** [July 23, 2025, 8:13pm UTC](https://forum.ansible.com/t/how-best-to-compare-filesystem-size-against-another-number/44048 "2025-07-23T20:13:36Z")

</div>

Hi there! I’m trying to get the size of a filesystem (/opt in this case) and ensure it is larger than another number (3Gb). Here’s what I have in my test playbook: --- - name: Assert that /opt has more than 3GB availab…

---

## [Latest release (2.19.0) breaks task](https://forum.ansible.com/t/latest-release-2-19-0-breaks-task/43986)

<div class="topic-metadata">

**Author:** [@Ansible2](https://forum.ansible.com/u/Ansible2)\
**Replies:** 7\
**Last updated:** [July 23, 2025, 7:55am UTC](https://forum.ansible.com/t/latest-release-2-19-0-breaks-task/43986 "2025-07-23T07:55:13Z")

</div>

I have a Playbook who install a new Software version if a new version is available. With the version ansible \[core 2.14.18\] (Debian Bookworm) it works, but I I use the same Playbook with ansible \[core 2.19.0b6\] (Debian T…

---

## [Ansible.builtin.async\_status throwing error in Ansible 2.19](https://forum.ansible.com/t/ansible-builtin-async-status-throwing-error-in-ansible-2-19/43944)

<div class="topic-metadata">

**Author:** [@trisha-dell](https://forum.ansible.com/u/trisha-dell)\
**Replies:** 5\
**Last updated:** [July 22, 2025, 4:40pm UTC](https://forum.ansible.com/t/ansible-builtin-async-status-throwing-error-in-ansible-2-19/43944 "2025-07-22T16:40:14Z")

</div>

While executing the following task, an error is observed: - name: Wait for instance(s) creation to complete become: "{{ not item.item.rootless | default(omit) }}" ansible.builtin.async\_status: jid: "{{ item.ansi…

---

## [Pinning a quick guide to templating changes in Get Help](https://forum.ansible.com/t/pinning-a-quick-guide-to-templating-changes-in-get-help/43634)

<div class="topic-metadata">

**Author:** [@oranod](https://forum.ansible.com/u/oranod)\
**Replies:** 6\
**Last updated:** [July 15, 2025, 5:40pm UTC](https://forum.ansible.com/t/pinning-a-quick-guide-to-templating-changes-in-get-help/43634 "2025-07-15T17:40:34Z")

</div>

Hi everyone, @gundalow and I have been talking about creating a sticky post for the “Get help” category that quickly outlines some of the changes coming with templating and points users to the porting guide and other re…

---

## [A quick guide to templating changes](https://forum.ansible.com/t/a-quick-guide-to-templating-changes/43886)

<div class="topic-metadata">

**Author:** [@oranod](https://forum.ansible.com/u/oranod)\
**Replies:** 0\
**Last updated:** [July 15, 2025, 5:38pm UTC](https://forum.ansible.com/t/a-quick-guide-to-templating-changes/43886 "2025-07-15T17:38:46Z")

</div>

Templating changes Note that Ansible 12 and stable-2.19 are coming soon. We’ve decided to pin this post ahead of the actual releases so folks have a heads up. However the versions mentioned below are not actually availa…

---

## [Json\_query and hyphens issue](https://forum.ansible.com/t/json-query-and-hyphens-issue/43745)

<div class="topic-metadata">

**Author:** [@RRohi](https://forum.ansible.com/u/RRohi)\
**Replies:** 6\
**Last updated:** [July 7, 2025, 4:24pm UTC](https://forum.ansible.com/t/json-query-and-hyphens-issue/43745 "2025-07-07T16:24:16Z")

</div>

Hello I’ve trying to get it working for hours now and no luck. I’m querying Proxmox LXC network info from the API and the structure is: json data ip-addresses lo: ip-address eth0: ip-address The tas…

---

## [Making a collection compatible with core 2.19 and templating changes](https://forum.ansible.com/t/making-a-collection-compatible-with-core-2-19-and-templating-changes/41717)

<div class="topic-metadata">

**Author:** [@samccann](https://forum.ansible.com/u/samccann)\
**Replies:** 19\
**Last updated:** [July 7, 2025, 4:21am UTC](https://forum.ansible.com/t/making-a-collection-compatible-with-core-2-19-and-templating-changes/41717 "2025-07-07T04:21:09Z")

</div>

As mentioned in Core-2.19 templating changes - preview and testing, collection maintainers need to test their collections to ensure compatibility with core-2.19. This is the topic where you can add your advice to other …

---

## [\[vote ended 2025-04-16\] Make Ansible 11 a "LTS" (similar to Ansible 9)?](https://forum.ansible.com/t/vote-ended-2025-04-16-make-ansible-11-a-lts-similar-to-ansible-9/40851)

<div class="topic-metadata">

**Author:** [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Replies:** 15\
**Last updated:** [July 1, 2025, 4:40am UTC](https://forum.ansible.com/t/vote-ended-2025-04-16-make-ansible-11-a-lts-similar-to-ansible-9/40851 "2025-07-01T04:40:23Z")

</div>

Assuming that Data Tagging is merged for ansible-core 2.19 (which will be the core of Ansible 12), migration of existing roles and playbooks to ansible-core 2.19 and thus Ansible 12 will require a lot of work since there…

---

## [Core-2.19 templating changes - preview and testing](https://forum.ansible.com/t/core-2-19-templating-changes-preview-and-testing/40759)

<div class="topic-metadata">

**Author:** [@nitzmahone](https://forum.ansible.com/u/nitzmahone)\
**Replies:** 56\
**Last updated:** [June 21, 2025, 1:42pm UTC](https://forum.ansible.com/t/core-2-19-templating-changes-preview-and-testing/40759 "2025-06-21T13:42:47Z")

</div>

Background Ansible Core 2.19 is slated to receive the Data Tagging feature we’ve been talking about and developing for several years. It’s been a long process, culminating in the largest set of changes to ansible-core si…

---

## [Adding a banner to docs about templating changes in core-2.19](https://forum.ansible.com/t/adding-a-banner-to-docs-about-templating-changes-in-core-2-19/42332)

<div class="topic-metadata">

**Author:** [@samccann](https://forum.ansible.com/u/samccann)\
**Replies:** 14\
**Last updated:** [June 6, 2025, 4:24pm UTC](https://forum.ansible.com/t/adding-a-banner-to-docs-about-templating-changes-in-core-2-19/42332 "2025-06-06T16:24:38Z")

</div>

Hey folks - So I admit, the core 2.19 changes have me worried. I know we have the data-tagging tag here and loads of project discussions, but I worry we haven’t hit our users with this info. One idea that popped up was…

---

## [Opening issues against all collections in Ansible for core-2.19 template testing](https://forum.ansible.com/t/opening-issues-against-all-collections-in-ansible-for-core-2-19-template-testing/41678)

<div class="topic-metadata">

**Author:** [@samccann](https://forum.ansible.com/u/samccann)\
**Replies:** 23\
**Last updated:** [April 26, 2025, 9:30am UTC](https://forum.ansible.com/t/opening-issues-against-all-collections-in-ansible-for-core-2-19-template-testing/41678 "2025-04-26T09:30:59Z")

</div>

Based on chat last week, we are considering autogenerating an issue to every collection repo included in the Ansible package. The goal here is to ensure they are aware of the data tagging feature and will (hopefully) eng…

---

## [Core 2.19 and Data tagging playground](https://forum.ansible.com/t/core-2-19-and-data-tagging-playground/39909)

<div class="topic-metadata">

**Author:** [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Replies:** 16\
**Last updated:** [April 23, 2025, 2:56pm UTC](https://forum.ansible.com/t/core-2-19-and-data-tagging-playground/39909 "2025-04-23T14:56:00Z")

</div>

In case you heard about data tagging in the past and are wondering when we’ll finally have it, there are some news regarding that: There is now a public PR in ansible/ansible with the current WIP implementation: Templati…

---

## [The Bullhorn #181](https://forum.ansible.com/t/the-bullhorn-181/41718)

<div class="topic-metadata">

**Author:** [@samccann](https://forum.ansible.com/u/samccann)\
**Replies:** 0\
**Last updated:** [April 14, 2025, 3:50pm UTC](https://forum.ansible.com/t/the-bullhorn-181/41718 "2025-04-14T15:50:08Z")

</div>

This week in Ansible Community Issue #181, 2025-04-14 (Past Issues) Welcome to The Bullhorn, our newsletter for the Ansible Community. If you have any questions or content you’d like to share, you’re welcome to ch…
