Ansible: Setting default hosts file

From Glitchdata
Jump to navigation Jump to search

Looking for the default hosts location is generally quite irrelevant, as it may not exist or is located in different places on different platforms.

Setting up Default hosts

Setting the default hosts location is more important.

export ANSIBLE_HOSTS=~/ansible/hosts

If a default host has not been set, then you will need to use the -i parameter to state the inventory file to use.