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
486d14cb
Commit
486d14cb
authored
Feb 05, 2014
by
Tom Dymond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reworked PR to avoid repeating the command
parent
cf80f9b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
library/system/sysctl
+4
-3
No files found.
library/system/sysctl
View file @
486d14cb
...
...
@@ -220,10 +220,11 @@ class SysctlModule(object):
rc
,
out
,
err
=
self
.
module
.
run_command
(
'/etc/rc.d/sysctl reload'
)
else
:
# system supports reloading via the -p flag to sysctl, so we'll use that
sysctl_args
=
[
self
.
sysctl_cmd
,
'-p'
,
self
.
sysctl_file
]
if
self
.
args
[
'ignoreerrors'
]:
rc
,
out
,
err
=
self
.
module
.
run_command
([
self
.
sysctl_cmd
,
'-e'
,
'-p'
,
self
.
sysctl_file
]
)
else
:
rc
,
out
,
err
=
self
.
module
.
run_command
([
self
.
sysctl_cmd
,
'-p'
,
self
.
sysctl_file
]
)
sysctl_args
.
insert
(
1
,
'-e'
)
rc
,
out
,
err
=
self
.
module
.
run_command
(
sysctl_args
)
if
rc
!=
0
:
self
.
module
.
fail_json
(
msg
=
"Failed to reload sysctl:
%
s"
%
str
(
out
)
+
str
(
err
))
...
...
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