Documentation states I can install ansible via pip, but after installing, doesn’t seem it’s available via command line:
bash: /usr/bin/ansible: No such file or directory
which ansible
…
Ansible v. 2.4.0, Ubuntu 16.10, Python 3.6
Documentation states I can install ansible via pip, but after installing, doesn’t seem it’s available via command line:
bash: /usr/bin/ansible: No such file or directory
which ansible
…
Ansible v. 2.4.0, Ubuntu 16.10, Python 3.6
Assuming you’re using the OS packaged version of pip from apt (python-pip). Ubuntu at some point changed their pip to install to ~/.local/bin, which should be added to your PATH by the Ubuntu default ~/.profile. If you’ve removed that or in some other way aren’t using it, make sure to add ~/.local/bin to your PATH and it should start working.