How to check Ansible version on Linux/Unix

ansible --version

The output will show the version number, for example:

ansible 2.9.13
config file = None
configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.8/dist-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.8.7 (default, Feb 10 2021, 15:21:51) [GCC 8.4.0]

Leave a Comment