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
6266571c
Commit
6266571c
authored
Feb 08, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2030 from cordmata/devel
Fix Issue #2025 where templates were not being transfered.
parents
23bffc5f
2ccfc8d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/ansible/runner/action_plugins/template.py
+3
-3
No files found.
lib/ansible/runner/action_plugins/template.py
View file @
6266571c
...
...
@@ -82,7 +82,7 @@ class ActionModule(object):
# template is different from the remote value
# if showing diffs, we need to get the remote value
dest_contents
=
None
dest_contents
=
None
if
self
.
runner
.
diff
:
# using persist_files to keep the temp directory around to avoid needing to grab another
dest_result
=
self
.
runner
.
_execute_module
(
conn
,
tmp
,
'slurp'
,
"path=
%
s"
%
dest
,
inject
=
inject
,
persist_files
=
True
)
...
...
@@ -92,7 +92,7 @@ class ActionModule(object):
else
:
raise
Exception
(
"unknown encoding, failed:
%
s"
%
dest_result
.
result
)
xfered
=
self
.
runner
.
_transfer_str
(
conn
,
tmp
,
source
,
resultant
)
xfered
=
self
.
runner
.
_transfer_str
(
conn
,
tmp
,
'source'
,
resultant
)
# fix file permissions when the copy is done as a different user
if
self
.
runner
.
sudo
and
self
.
runner
.
sudo_user
!=
'root'
:
...
...
@@ -100,7 +100,7 @@ class ActionModule(object):
# run the copy module
module_args
=
"
%
s src=
%
s dest=
%
s"
%
(
module_args
,
xfered
,
dest
)
if
self
.
runner
.
check
:
if
self
.
runner
.
diff
:
self
.
runner
.
callbacks
.
on_file_diff
(
conn
.
host
,
dest_contents
,
resultant
)
...
...
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