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
9e1bc434
Commit
9e1bc434
authored
Sep 03, 2015
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Further cleanup from locking changes
parent
b93f27e2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
lib/ansible/executor/task_queue_manager.py
+2
-0
lib/ansible/playbook/play_context.py
+2
-7
No files found.
lib/ansible/executor/task_queue_manager.py
View file @
9e1bc434
...
...
@@ -87,6 +87,8 @@ class TaskQueueManager:
except
ValueError
:
fileno
=
None
# A temporary file (opened pre-fork) used by connection
# plugins for inter-process locking.
self
.
_connection_lockfile
=
tempfile
.
TemporaryFile
()
self
.
_workers
=
[]
...
...
lib/ansible/playbook/play_context.py
View file @
9e1bc434
...
...
@@ -161,6 +161,7 @@ class PlayContext(Base):
_private_key_file
=
FieldAttribute
(
isa
=
'string'
,
default
=
C
.
DEFAULT_PRIVATE_KEY_FILE
)
_timeout
=
FieldAttribute
(
isa
=
'int'
,
default
=
C
.
DEFAULT_TIMEOUT
)
_shell
=
FieldAttribute
(
isa
=
'string'
)
_connection_lockfd
=
FieldAttribute
(
isa
=
'int'
)
# privilege escalation fields
_become
=
FieldAttribute
(
isa
=
'bool'
)
...
...
@@ -199,8 +200,7 @@ class PlayContext(Base):
self
.
password
=
passwords
.
get
(
'conn_pass'
,
''
)
self
.
become_pass
=
passwords
.
get
(
'become_pass'
,
''
)
# A temporary file (opened pre-fork) used by connection
# plugins for inter-process locking.
# a file descriptor to be used during locking operations
self
.
connection_lockfd
=
connection_lockfd
# set options before play to allow play to override them
...
...
@@ -326,11 +326,6 @@ class PlayContext(Base):
return
new_info
def
copy
(
self
,
exclude_block
=
False
):
new_me
=
super
(
PlayContext
,
self
)
.
copy
()
new_me
.
connection_lockfd
=
self
.
connection_lockfd
return
new_me
def
make_become_cmd
(
self
,
cmd
,
executable
=
None
):
""" helper function to create privilege escalation commands """
...
...
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