ansible inventory file location is it /etc/ansible/hosts or /etc/hosts?

Viewed 1198

I am having one basic doubt on inventory file creation, whether the location of the inventory file name is

/etc/ansible/hosts or /etc/hosts ?

If both are same then why we need the inventory file settings differently?

Thanks, Sathiyarajan M

1 Answers
Related