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
3e0c33c1
Commit
3e0c33c1
authored
Apr 21, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Empty plays should still gather facts
parent
b08181e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
lib/ansible/playbook/__init__.py
+3
-2
No files found.
lib/ansible/playbook/__init__.py
View file @
3e0c33c1
...
...
@@ -224,7 +224,9 @@ class PlayBook(object):
# if we have matched_tags, the play must be run.
# if the play contains no tasks, assume we just want to gather facts
if
(
len
(
matched_tags
)
>
0
or
len
(
play
.
tasks
())
==
0
):
# in this case there are actually 4 meta tasks (handler flushes) not 0
# tasks, so that's why there's a check against 4.
if
(
len
(
matched_tags
)
>
0
or
len
(
play
.
tasks
())
==
4
):
plays
.
append
(
play
)
# if the playbook is invoked with --tags that don't exist at all in the playbooks
...
...
@@ -519,7 +521,6 @@ class PlayBook(object):
should_run
=
False
for
x
in
self
.
only_tags
:
for
y
in
task
.
tags
:
if
(
x
==
y
):
should_run
=
True
...
...
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