Getting error while running ansible-playbook

How to ensure inventor and playbook to be picked from path=/home/thor/ansible/ while running below command

$ansible-playbook -i [inventory_filename] playbook.yml

is there any variable to be set


Hi @ashueme19

You can set default inventory location from the Ansible.cfg file and you can provide absolute path for the playbooks.