add `undef()` keyword to core 2.12 porting guide (#76880)

pull/76948/head
Daniel Goldman 3 years ago committed by GitHub
parent 10fd7bf12c
commit e1cf6af06d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -32,6 +32,15 @@ Playbook
vars:
ansible_async_dir: /path/to/my/custom/dir
* The ``undef()`` function is added to the templating environment for creating undefined variables directly in a template. Optionally, a hint may be provided for variables which are intended to be overridden.
.. code-block:: yaml
vars:
old: "{{ undef }}"
new: "{{ undef() }}"
new_with_hint: "{{ undef(hint='You must override this variable') }}"
Python Interpreter Discovery
============================

Loading…
Cancel
Save