- Linux Operating System
- Python 3.x.x
Run the below codes to install the global version of Ansible
Gnome Terminal
[anand@linux-pc ~]:$ sudo python get-pip.py
[anand@linux-pc ~]:$ sudo python -m pip install ansible
[anand@linux-pc ~]:$ sudo python -m pip install ansible
Gnome Terminal
[anand@linux-pc ~]:$ sudo python3 get-pip.py
[anand@linux-pc ~]:$ sudo python3 -m pip install ansible
[anand@linux-pc ~]:$ sudo python3 -m pip install ansible
Gnome Terminal
[anand@linux-pc ~]:$ ansible --version
ansible 2.9.11 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/kali/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/kali/.local/lib/python3.8/site-packages/ansible executable location = /usr/local/bin/ansible python version = 3.8.5 (default, Aug 2 2020, 15:09:07) [GCC 10.2.0]
ansible 2.9.11 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/kali/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/kali/.local/lib/python3.8/site-packages/ansible executable location = /usr/local/bin/ansible python version = 3.8.5 (default, Aug 2 2020, 15:09:07) [GCC 10.2.0]