CoreOS setup

39 views
Skip to first unread message

Jasna Benčić

unread,
Aug 10, 2015, 9:16:59 AM8/10/15
to Ansible Project

Recently I had a chance to work with CoreOS and have tried to set Ansible with it but couldn't. I've been using following tutorial: https://coreos.com/blog/managing-coreos-with-ansible/

I have created a new inventory in Tower which has following settings:
ansible_python_interpreter: "PATH=/root/bin:$PATH python"
ansible_ssh_user: root
core-01: server.name.com

I have even tried to use it with core user and every time I got an error where it says that python command is not recognized. After that I have symlinked python from one of the pre-installed docker images on CoreOS and I got a following error:
"BECOME-SUCCESS-ecytrcabjjiwdtciwdoidmavgkkwkida python: error while loading shared libraries: libpython2.7.so" ..... tried to symlink library but that didn't work......

You probably have a better insight how could I set up Ansible to work with CoreOS server. Nothing I have found on the Internet worked for me so far.

Any additional insight and help from your side would be appreciated.

Thanks and regards,


Jasna

Greg DeKoenigsberg

unread,
Aug 10, 2015, 12:59:07 PM8/10/15
to Ansible Project
Jasna,

I presume you're following the blog instructions? If so, you're using
code from a Github repo that's used for bootstrapping CoreOS properly
to use Ansible:

https://github.com/defunctzombie/coreos-ansible-example

The issue you're likely running into is not an Ansible issue per se,
but rather an issue of getting the proper Python dependencies
bootstrapped within CoreOS, which does not have Python installed by
default. I'd recommend that you follow up with folks in the CoreOS
community, and perhaps the maintainer of the coreos-ansible-example
repo.

Some other folks on the list may have some tips as well for getting
Python running properly in CoreOS.

--g
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/f7fc80d1-c439-418a-9bdc-a22b2dcba9d9%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Greg DeKoenigsberg
Ansible Community Guy

Find out why SD Times named Ansible
their #1 Company to Watch in 2015:
http://sdtimes.com/companies-watch-2015/

Greg DeKoenigsberg

unread,
Aug 10, 2015, 1:00:35 PM8/10/15
to Ansible Project
Also, this is a useful introduction on what you're trying to
accomplish, and how:

https://github.com/defunctzombie/coreos-ansible-example/blob/master/post.md

--g
Reply all
Reply to author
Forward
0 new messages