How to update ansible when installed from source?

12 views
Skip to first unread message

mbigras

unread,
Sep 3, 2016, 2:56:19 AM9/3/16
to Ansible Project

I set up ansible by cloning the repo down and then running source ./hacking/env-setup which, among other things, seems to add /path/to/repos/ansible/bin to my path, except it only works for my current session.

So then I used sudo make install. Now it seems like ansible is installed to /usr/local/bin/ansible and is currently version 2.2.0

~ ❯ which ansible
/usr/local/bin/ansible
~ ❯ ansible --version                                   
ansible 2.2.0
  config file =
  configured module search path = Default w/o overrides

So what I’m wondering now is:

  1. Was that the accepted way to have installed ansible from source?
  2. How should I go about updating?

For number 2 I was thinking

$ git pull --rebase
$ git submodule update --init --recursive
$ sudo make install

But I’m not sure if that is the right way.

Thanks for your help :)

Reply all
Reply to author
Forward
0 new messages