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
6faaf410
Commit
6faaf410
authored
Aug 04, 2015
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update conditional docs since @jimi-c got playbook includes working in 2.0
parent
61e76fd7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
docsite/rst/playbooks_conditionals.rst
+3
-2
No files found.
docsite/rst/playbooks_conditionals.rst
View file @
6faaf410
...
@@ -119,12 +119,13 @@ Applying 'when' to roles and includes
...
@@ -119,12 +119,13 @@ Applying 'when' to roles and includes
`````````````````````````````````````
`````````````````````````````````````
Note that if you have several tasks that all share the same conditional statement, you can affix the conditional
Note that if you have several tasks that all share the same conditional statement, you can affix the conditional
to a task include statement as below. Note this does not work with playbook includes, just task includes. All the tasks
to a task include statement as below. All the tasks get evaluated, but the conditional is applied to each and every task::
get evaluated, but the conditional is applied to each and every task::
- include: tasks/sometasks.yml
- include: tasks/sometasks.yml
when: "'reticulating splines' in output"
when: "'reticulating splines' in output"
.. note:: In versions prior to 2.0 this worked with task includes but not playbook includes. 2.0 allows it to work with both.
Or with a role::
Or with a role::
- hosts: webservers
- hosts: webservers
...
...
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