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
93c98038
Commit
93c98038
authored
Mar 20, 2015
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing some leftover debug prints and cleaning up test sample
parent
cf96c771
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
2 additions
and
12 deletions
+2
-12
v2/ansible/playbook/block.py
+0
-1
v2/ansible/playbook/helpers.py
+0
-2
v2/ansible/playbook/play.py
+0
-1
v2/samples/roles/test_become_r1/meta/main.yml
+1
-1
v2/samples/roles/test_become_r1/tasks/main.yml
+0
-1
v2/samples/roles/test_become_r2/meta/main.yml
+1
-1
v2/samples/roles/test_become_r2/tasks/main.yml
+0
-1
v2/samples/test_become.yml
+0
-4
No files found.
v2/ansible/playbook/block.py
View file @
93c98038
...
...
@@ -147,7 +147,6 @@ class Block(Base, Become, Conditional, Taggable):
new_me
.
block
=
_dupe_task_list
(
self
.
block
or
[],
new_me
)
new_me
.
rescue
=
_dupe_task_list
(
self
.
rescue
or
[],
new_me
)
new_me
.
always
=
_dupe_task_list
(
self
.
always
or
[],
new_me
)
print
(
"new block tasks are:
%
s"
%
new_me
.
block
)
new_me
.
_parent_block
=
None
if
self
.
_parent_block
:
...
...
v2/ansible/playbook/helpers.py
View file @
93c98038
...
...
@@ -37,7 +37,6 @@ def load_list_of_blocks(ds, parent_block=None, role=None, task_include=None, use
assert
type
(
ds
)
in
(
list
,
NoneType
)
block_list
=
[]
print
(
"in load list of blocks, ds is:
%
s"
%
ds
)
if
ds
:
for
block
in
ds
:
b
=
Block
.
load
(
...
...
@@ -51,7 +50,6 @@ def load_list_of_blocks(ds, parent_block=None, role=None, task_include=None, use
)
block_list
.
append
(
b
)
print
(
"-> returning block list:
%
s"
%
block_list
)
return
block_list
...
...
v2/ansible/playbook/play.py
View file @
93c98038
...
...
@@ -219,7 +219,6 @@ class Play(Base, Taggable, Become):
block_list
.
extend
(
self
.
tasks
)
block_list
.
extend
(
self
.
post_tasks
)
print
(
"block list is:
%
s"
%
block_list
)
return
block_list
def
get_vars
(
self
):
...
...
v2/samples/roles/test_become_r1/meta/main.yml
View file @
93c98038
allow_duplicates
:
yes
#
allow_duplicates: yes
v2/samples/roles/test_become_r1/tasks/main.yml
View file @
93c98038
-
debug
:
msg="this is test_become_r1"
-
command
:
whoami
v2/samples/roles/test_become_r2/meta/main.yml
View file @
93c98038
allow_duplicates
:
yes
#
allow_duplicates: yes
dependencies
:
-
test_become_r1
v2/samples/roles/test_become_r2/tasks/main.yml
View file @
93c98038
-
debug
:
msg="this is test_become_r2"
-
command
:
whoami
v2/samples/test_become.yml
View file @
93c98038
-
hosts
:
all
gather_facts
:
no
roles
:
-
{
role
:
test_become_r2
}
-
{
role
:
test_become_r2
,
sudo_user
:
testing
}
tasks
:
-
command
:
whoami
-
command
:
whoami
become_user
:
testing
-
block
:
-
command
:
whoami
-
block
:
-
command
:
whoami
become_user
:
testing
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