CoreOS setup

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

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

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