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
a5cb16c9
Commit
a5cb16c9
authored
Apr 14, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use correct user to determine host files path, do not reuse .ansible
which is already taken for ansible management ops.
parent
6307267c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
lib/ansible/runner.py
+4
-2
No files found.
lib/ansible/runner.py
View file @
a5cb16c9
...
...
@@ -28,6 +28,7 @@ import random
import
traceback
import
tempfile
import
subprocess
import
getpass
import
ansible.constants
as
C
import
ansible.connection
...
...
@@ -405,8 +406,9 @@ class Runner(object):
def
_save_setup_result_to_disk
(
self
,
conn
,
result
):
''' cache results of calling setup '''
dest
=
os
.
path
.
expanduser
(
"~/.ansible/setup_data"
)
if
self
.
remote_user
==
'root'
:
dest
=
os
.
path
.
expanduser
(
"~/.ansible_setup_data"
)
user
=
getpass
.
getuser
()
if
user
==
'root'
:
dest
=
"/var/lib/ansible/setup_data"
if
not
os
.
path
.
exists
(
dest
):
os
.
makedirs
(
dest
)
...
...
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