ansible host file flag code example
Example: ansible use host file flag
# Use the -i flag to reference an ansible hosts file
ansible all -i=/etc/ansible/myhostfile -m ping
# Use the -i flag to reference an ansible hosts file
ansible all -i=/etc/ansible/myhostfile -m ping