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
546788a1
Commit
546788a1
authored
Sep 06, 2013
by
James Laska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The required package for selinux is libselinux-python
parent
7752a560
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
docsite/latest/rst/gettingstarted.rst
+1
-1
lib/ansible/module_common.py
+1
-1
library/system/selinux
+1
-1
No files found.
docsite/latest/rst/gettingstarted.rst
View file @
546788a1
...
...
@@ -40,7 +40,7 @@ also need:
.. note::
If you have SELinux enabled on remote nodes, you will also want to install
python-selinux
on them before using any copy/file/template related functions in
libselinux-python
on them before using any copy/file/template related functions in
Ansible. You can of course still use the yum module in Ansible to install this package on
remote systems that do not have it.
...
...
lib/ansible/module_common.py
View file @
546788a1
...
...
@@ -269,7 +269,7 @@ class AnsibleModule(object):
if seenabled is not None:
(rc,out,err) = self.run_command(seenabled)
if rc == 0:
self.fail_json(msg="Aborting, target uses selinux but python bindings (
python-selinux
) aren't installed!")
self.fail_json(msg="Aborting, target uses selinux but python bindings (
libselinux-python
) aren't installed!")
return False
if selinux.is_selinux_enabled() == 1:
return True
...
...
library/system/selinux
View file @
546788a1
...
...
@@ -61,7 +61,7 @@ import sys
try
:
import
selinux
except
ImportError
:
print
"failed=True msg='
python-selinux
required for this module'"
print
"failed=True msg='
libselinux-python
required for this module'"
sys
.
exit
(
1
)
# getter subroutines
...
...
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