Checking Ansible Version After Installation
After installing Ansible on your system, you can check the version of Ansible using the following command:
ansible --version
This command will display the version of Ansible installed on your system, along with some additional information, such as the Python version and the location of the Ansible configuration file.
Here's an example output:
ansible 2.9.6
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 3.8.10 (default, Jun 2 2021, 10:49:15) [GCC 9.4.0]
The output shows that the installed version of Ansible is 2.9.6, and it also provides information about the configuration file, module search path, and the Python version used by Ansible.