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
de702771
Commit
de702771
authored
Apr 17, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No need to save setup files to disk, this is what SETUP_CACHE effectively does.
parent
d7ad8534
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
lib/ansible/runner.py
+0
-20
No files found.
lib/ansible/runner.py
View file @
de702771
...
...
@@ -299,24 +299,6 @@ class Runner(object):
# *****************************************************
def
_save_setup_result_to_disk
(
self
,
conn
,
result
):
''' cache results of calling setup '''
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
)
fh
=
open
(
os
.
path
.
join
(
dest
,
conn
.
host
),
"w"
)
fh
.
write
(
result
)
fh
.
close
()
return
result
# *****************************************************
def
_add_result_to_setup_cache
(
self
,
conn
,
result
):
''' allows discovered variables to be used in templates and action statements '''
...
...
@@ -350,8 +332,6 @@ class Runner(object):
if
module_name
==
'setup'
:
self
.
_add_result_to_setup_cache
(
conn
,
result
)
if
self
.
is_playbook
:
self
.
_save_setup_result_to_disk
(
conn
,
result
)
return
self
.
_return_from_module
(
conn
,
host
,
result
,
err
,
executed
)
...
...
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