27.1.16

how im running ansible nowadays





I was surprised that ansible didn't have a "install on your mac" button when I went to the website, given how great the UX is and how accessible they generally try to make the project.


Then I realized why : Its ridiculously easy to run ansible from source. Now, that said, there are packages for various distributions which you can use.  But you can just as easily check a tag out from git and run the bin/ansible executable that ships with the open source project...

If you are using ansible for a bunch of projects,  you may want to run it from source.  The amount of new features between 1.9 -> 2.0, and so on, make it not-the-best-idea to use a "single" version of it.


(1) clone ansible from github ; git checkout v1.9.0-2 ;

(2) `cd ./ansible`

(3) `source ./hacking/env-setup`

(4) `alias ansible=bin/ansible` .  

That way you never depend on packages.

Since this means you're running ansible from a weird directory, you might have to do something like this:

ANSIBLE_ROLES_PATH=/usr/share/ansible/openshift-ansible/roles ansible-playbook -i ~/inventory.openshift-enterprise-300nodes openshift_hosted_logging_efk.yaml

No comments:

Post a Comment