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
95761ea9
Commit
95761ea9
authored
Feb 17, 2014
by
Maykel Moya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Uniform spacing across all filter examples
parent
21645738
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
docsite/rst/playbooks_variables.rst
+4
-4
No files found.
docsite/rst/playbooks_variables.rst
View file @
95761ea9
...
@@ -189,7 +189,7 @@ All these functions return a unique set from sets or lists.
...
@@ -189,7 +189,7 @@ All these functions return a unique set from sets or lists.
To get a unique set from a list::
To get a unique set from a list::
{{ list1 |unique }}
{{ list1 |
unique }}
To get a union of two lists::
To get a union of two lists::
...
@@ -197,15 +197,15 @@ To get a union of two lists::
...
@@ -197,15 +197,15 @@ To get a union of two lists::
To get the intersection of 2 lists (unique list of all items in both)::
To get the intersection of 2 lists (unique list of all items in both)::
{{ list1 |
intersect(list2)
}}
{{ list1 |
intersect(list2)
}}
To get the difference of 2 lists (items in 1 that don't exist in 2)::
To get the difference of 2 lists (items in 1 that don't exist in 2)::
{{ list1 |
difference(list2)
}}
{{ list1 |
difference(list2)
}}
To get the symmetric difference of 2 lists (items exclusive to each list)::
To get the symmetric difference of 2 lists (items exclusive to each list)::
{{ list1 |
symmetric_difference(list2)
}}
{{ list1 |
symmetric_difference(list2)
}}
.. _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