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
f010bcde
Commit
f010bcde
authored
Oct 08, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs should indicate with_items and yum/apt logic is available
parent
8f5beb74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
rst/playbooks2.rst
+3
-4
No files found.
rst/playbooks2.rst
View file @
f010bcde
...
...
@@ -305,8 +305,8 @@ from turning into arbitrary code with ugly nested ifs, conditionals, and so on -
in more streamlined & auditable configuration rules -- especially because there are a
minimum of decision points to track.
Loop
Shorthand
`````
`````````
Loop
s
`````
To save some typing, repeated tasks can be written in short-hand like so::
...
...
@@ -327,8 +327,7 @@ The above would be the equivalent of::
- name: add user testuser2
action: user name=testuser2 state=present groups=wheel
In a future release, the yum and apt modules will use with_items to execute fewer package
manager transactions.
The yum and apt modules use with_items to execute fewer package manager transactions.
Selecting Files And Templates Based On Variables
...
...
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