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:
- Was that the accepted way to have installed
ansible
from source? - 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