Use `ansible-config dump` to see what's being set where.

The command you ran is looking for your inventory at 
`/etc/ansible/bgrsuistg`. If that's wrong, list the full path or relative 
path in the parameter to the `-i` option, like `-i ./bgrsuistg`

On Tuesday, March 29, 2022 at 12:54:09 PM UTC-4 Nitrous wrote:

> Thanks, where can I specify the path to the inventory?
>
> We usually just add a list of VMs and their IP in the /etc/ansible/host 
> file.
>
> On Tuesday, March 29, 2022 at 11:45:05 AM UTC-5 [email protected] wrote:
>
>> Hey,
>>
>> It works here so its likely your inventory is not in the path you think 
>> it is, its for some reason unreadable but unlikely as it looks like your 
>> logged in as root. 
>>
>> Regards
>>
>>
>> On 29 Mar 2022, at 17:38, Nitrous <[email protected]> wrote:
>>
>> Using /etc/ansible/ansible.cfg as config file
>> setting up inventory plugins
>> host_list declined parsing /etc/ansible/bgrsuistg as it did not pass its 
>> verify_file() method
>> Skipping due to inventory source not existing or not being readable by 
>> the current user
>> script declined parsing /etc/ansible/bgrsuistg as it did not pass its 
>> verify_file() method
>> auto declined parsing /etc/ansible/bgrsuistg as it did not pass its 
>> verify_file() method
>> Skipping due to inventory source not existing or not being readable by 
>> the current user
>> yaml declined parsing /etc/ansible/bgrsuistg as it did not pass its 
>> verify_file() method
>> Skipping due to inventory source not existing or not being readable by 
>> the current user
>> ini declined parsing /etc/ansible/bgrsuistg as it did not pass its 
>> verify_file() method
>> Skipping due to inventory source not existing or not being readable by 
>> the current user
>> toml declined parsing /etc/ansible/bgrsuistg as it did not pass its 
>> verify_file() method
>> [WARNING]: Unable to parse /etc/ansible/bgrsuistg as an inventory source
>> [WARNING]: No inventory was parsed, only implicit localhost is available
>> [WARNING]: provided hosts list is empty, only localhost is available. 
>> Note that the implicit localhost does not match 'all'
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/727eefe9-38ba-4389-9038-1688415df5c8n%40googlegroups.com.

Reply via email to