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

Unable to manage coreos alpha instances with ansible #449

Closed
spiffxp opened this Issue Aug 25, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@spiffxp

spiffxp commented Aug 25, 2015

Following this: https://coreos.com/blog/managing-coreos-with-ansible/

Trying to bootstrap ansible 1.9.2 with this: https://github.com/defunctzombie/ansible-coreos-bootstrap

Fails with:

msg: Aborting, target uses selinux but python bindings (libselinux-python) aren't installed!

ansible looks to be tripping up because even though selinux is running in permissive mode, selinuxenabled is returning true https://github.com/ansible/ansible/blob/v1.9.2-1/lib/ansible/module_utils/basic.py#L459

How would one go about getting libselinux-python and libsemanage-python installed on coreos... is this something I could do at cloudinit time or would this involve building a custom image?

First noticed someone else encountering this here: https://botbot.me/freenode/coreos/2015-08-20/?msg=47718150&page=6

mjg59 added a commit to mjg59/coreos-overlay that referenced this issue Aug 26, 2015

Don't install /sbin/selinuxenabled
We don't use this for anything, but Ansible won't run if it's present and
the selinux python bindings aren't.

Fixes coreos/bugs#449

mjg59 added a commit to mjg59/coreos-overlay that referenced this issue Aug 26, 2015

Don't install /sbin/selinuxenabled
We don't use this for anything, but Ansible won't run if it's present and
the selinux python bindings aren't.

Fixes coreos/bugs#449
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment