On Tue, Jun 16, 2020 at 10:00 AM M. Manna <
manm...@gmail.com> wrote:
>
> Hi,
>
> On Tuesday, 16 June 2020 08:53:53 UTC+1, Luca 'remix_tj' Lorenzetto wrote:
>>
>> Hello,
>>
>> the error you're reporting:
>>
>> [WARNING]: * Failed to parse /******/inventory/inventory.py with
>> script plugin: failed to parse executable inventory
>> script results from /********/inventory/inventory.py: Expecting
>> property name enclosed in double quotes: line 1 column 2
>> (char 1)
>>
>> is clear. The inventory.py script returns an invalid json/yaml.
>>
>> Could you please share Line 1 of the output of
>>
>> inventory.py --list
>>
>> ?
>
>
> I am not sure if you read my post. The problem isn't with JSON/YAML. When I install Ansible with pip package manager, this works just fine (2.6,2.7,2.8,2.9,latest).
> When I install Ansible using DNF or YUM - it doesn't work and outputs that error message. How is it possible that the JSON is invalid in once case, but not both?
>>
>>
>> As stated in the issue, ansible doesn't parse directly json, but yaml,
>> which is a superset of json.
>>
>> If your script returns an invalid json/yaml newer ansible version may
>> not understand it correctly. And you can't expect that since a version
>> that accidentally understood it, it will accepted forever.
>>
> Repeating my previous question, how is it possible that versions 2.6,2.7,2.8,2.9 (and latest 2.9.9) all works just fine when installed using pip? I am not sure if anyone is reading my question :)