i already tried 777 on that file ... no luck 

On Friday, February 12, 2021 at 7:38:33 PM UTC-8 Abhijeet Kasurde wrote:

> Hi,
>
> Can you check the permission of the ` 
> /etc/ansible/playbooks/dc-inv-ALL-vmware.yml`? if those are only root 
> readable then the non-root users won't be able to read it and you will get 
> errors. 
>
> On Sat, Feb 13, 2021 at 7:53 AM esxi...@gmail.com <esxi...@gmail.com> 
> wrote:
>
>> i removed dynamic inv & i can run playbook as jenkins user just fine 
>>
>> not sure what the dynamic inv plugin does not like to work with non-root 
>> user ..
>>
>> Any suggestions Please 
>>
>> On Friday, February 12, 2021 at 4:52:08 PM UTC-8 esxi...@gmail.com wrote:
>>
>>>
>>> Hi,
>>>
>>> When i run below as Jenkins user i get error 
>>>
>>> ansible-playbook   /etc/ansible/playbooks/uptime-inv-based.yml  -i 
>>> /etc/ansible/playbooks/dc-inv-ALL-vmware.yml
>>> [WARNING]: Failed to load inventory plugin, skipping 
>>> community.vmware.vmware_vm_inventory
>>> ERROR! No inventory plugins available to generate inventory, make sure 
>>> you have at least one whitelisted.
>>>
>>>
>>> but when run as root it works 
>>>
>>> I tried PATH matching but no luck 
>>>
>>> Any suggestions Please ?
>>>
>>> #######################################
>>>
>>> OS :
>>>
>>> No LSB modules are available.
>>> Distributor ID: Ubuntu
>>> Description:    Ubuntu 20.04.2 LTS
>>> Release:        20.04
>>> Codename:       focal
>>>
>>>
>>> #######################################
>>>
>>> ansible 2.9.6
>>>   config file = /etc/ansible/ansible.cfg
>>>   configured module search path = 
>>> ['/var/lib/jenkins/.ansible/plugins/modules', 
>>> '/usr/share/ansible/plugins/modules']
>>>   ansible python module location = /usr/lib/python3/dist-packages/ansible
>>>   executable location = /usr/bin/ansible
>>>   python version = 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0]
>>>
>>> #######################################
>>>
>>> -- 
>> 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 ansible-proje...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/1a50cd54-baa9-44af-93b3-69fc9c48efb4n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/1a50cd54-baa9-44af-93b3-69fc9c48efb4n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
> Thanks,
> Abhijeet Kasurde
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/cf7da6e2-ec2d-45f6-b1b3-35bc8bfb66c1n%40googlegroups.com.

Reply via email to