Useful Links:
https://geektechstuff.com/2019/06/25/installing-ansible-raspberry-pi/
https://docs.ansible.com/projects/ansible/latest/reference_appendices/config.html#ansible-configuration-settings-locations
Did the install commands:
sudo apt-get update
sudo apt-get upgrade
sudo apt install ansible
this did not create the default directory /etc/ansible or the default config files so had to do the following:
sudo mkdir -p /etc/ansible
sudo touch /etc/ansible/ansible.cfg /etc/ansible/hosts
ansible-config init –disabled > ansible.cfg
sudo mv ansible.cfg /etc/ansible/ansible.cfg
Now check the config:
ansible –version