Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
79145b6a
Commit
79145b6a
authored
Nov 18, 2013
by
Brian Coca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated docs to add new filters
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
parent
07b59da9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
docsite/rst/playbooks_variables.rst
+16
-0
No files found.
docsite/rst/playbooks_variables.rst
View file @
79145b6a
...
@@ -167,6 +167,22 @@ This allows an explicit check with this feature off::
...
@@ -167,6 +167,22 @@ This allows an explicit check with this feature off::
The variable value will be used as is, but the template evaluation will raise an error if it is undefined.
The variable value will be used as is, but the template evaluation will raise an error if it is undefined.
.. _set_theory_filters:
Set Theory Filters
--------------------
These mostly deal with set (lists), no filter for union as this already works::
{{ list1 + list2 }}
To get the intersection of 2 lists (unique list of all items in both)::
{{ list1 |intersect(list2)}}
To get a unique set from a list::
{{ list1 |unique }}
.. _other_useful_filters:
.. _other_useful_filters:
Other Useful Filters
Other Useful Filters
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment