Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libselinux-python with virtualenvs require manual copy #205

Closed
termlen0 opened this issue Mar 14, 2019 · 3 comments
Closed

libselinux-python with virtualenvs require manual copy #205

termlen0 opened this issue Mar 14, 2019 · 3 comments

Comments

@termlen0
Copy link
Contributor

SUMMARY

If selinux is enabled on the provisioning host and a virutal environment is being used to execute the playbook the operator may run into the following error (Assuming the libselinux-python library was installed using yum)

TASK [manage_ec2_instances : save private key] *********************************************************************
fatal: [localhost]: FAILED! => changed=false 
  checksum: c507856105443cc8e2df2a8bb385c63fb170977f
  msg: Aborting, target uses selinux but python bindings (libselinux-python) aren't installed!

The workarounds are described here: trailofbits/algo#356
It might make sense to add this info into our FAQs as well.

ISSUE TYPE
  • Documentation Report
@Chrislevi
Copy link

I'm having the same issue on:
Centos7
ansible 2.7.6
python3.6

Tried using --system-site-packages though it didnt bypassed the libselinux-python error. From what i've digged, my belly guess is that I do have the selinux @ python2.7 site-packages.. but not the same for python3.6 site-packages. so I guess --system-site-packages is pointed at python2.7 by default.

I did try installing libselinux-python on remote and localhost, my failing module is template.

@IPvSean
Copy link
Contributor

IPvSean commented May 3, 2020

is this still an issue? is this just a doc bug?

@IPvSean
Copy link
Contributor

IPvSean commented May 18, 2020

no update in 15 days, must not be an issue?

@IPvSean IPvSean closed this as completed May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants