Open Adamyuanyuan opened 6 months ago
The comments are still confusing, actually, we defined inventory=hosts
in the ansible.cfg
, while if you have other effective ansible configurations, this one might not work.
I had to manually specify ansible-playbook -i hosts playbook.yaml
for this to work, but it could also be the reason for my environment, it's a minor.
Ensure you specify the inventory file when running the playbook if it is not located in the default path or correctly recognized by Ansible. For instance, use
ansible-playbook -i your_inventory_file playbook.yaml
to explicitly define the inventory.