Re: [ansible-project] Re: Overriding detected file kind 'yaml' with 'playbook' for given positional argument

2022-12-25 Thread rajthecomputerguy
Thank you all for your response On Thursday, December 22, 2022 at 6:30:52 PM UTC+5:30 wmcd...@gmail.com wrote: > There's a little more info on why this behaviour occurs here: > https://github.com/ansible/ansible-lint/issues/1398 > > The shell return value is accurate regardless: > > [wmcdonald@

Re: [ansible-project] Re: Overriding detected file kind 'yaml' with 'playbook' for given positional argument

2022-12-22 Thread Will McDonald
There's a little more info on why this behaviour occurs here: https://github.com/ansible/ansible-lint/issues/1398 The shell return value is accurate regardless: [wmcdonald@fedora tests]$ ll total 4 -rw-r--r--. 1 wmcdonald wmcdonald 143 Dec 22 12:55 test1.yaml [wmcdonald@fedora tests]$ cat test1.y

[ansible-project] Re: Overriding detected file kind 'yaml' with 'playbook' for given positional argument

2022-12-22 Thread Todd Lewis
Not possible to omit generating those messages, although you could say $ ansible-lint […] 2>/dev/null If the positional argument were, say, a group_vars file and it was being linted as if it were a playbook, then "WARNING …" would clearly make sense. Or if you didn't intend "my_test.yml" to be

[ansible-project] Re: Overriding detected file kind 'yaml' with 'playbook' for given positional argument

2022-12-22 Thread rajthecomputerguy
It is a warning , can you please tell me how to avoid this? *WARNING Overriding detected file kind 'yaml' with 'playbook' for given positional argument: my_test.yml* On Thursday, December 22, 2022 at 5:22:50 PM UTC+5:30 uto...@gmail.com wrote: > That isn't an error. It's just information: the

[ansible-project] Re: Overriding detected file kind 'yaml' with 'playbook' for given positional argument

2022-12-22 Thread Todd Lewis
That isn't an error. It's just information: the yaml file is being treated as a playbook. On Thursday, December 22, 2022 at 5:40:02 AM UTC-5 rajthecomputerguy wrote: > Hi Team, > > I am facing below error while doing ansible-lint, Any help would be > appreciated > > command: *ansible-lint test