Hi Asad Hasan,
Personally, I use YamlLint from the "sdesbure/yamllint" Docker Image ->
https://hub.docker.com/r/sdesbure/yamllint
I made this alias in my BashRc to mount local path to /yaml in the
container and launch it in every path: alias yamllint='eval docker run -it
--rm -v ${PWD}:/yaml sdesbure/yamllint yamllint'
You can then write your own rules in a .yamllint file to override defaults.
Rules documentation are here :
https://yamllint.readthedocs.io/en/stable/rules.html
I setup the rules like this :
---
extends: "default"
rules:
line-length: "disable"
indentation:
indent-sequences: no
comments:
require-starting-space: yes
min-spaces-from-content: 2
comments-indentation: "disable"
quoted-strings:
quote-type: "double"
truthy:
allowed-values:
- "yes"
- "no"
Hope you'll find your happiness !
Best regards,
--
[image: Kosmos] <https://www.kosmos-education.com>
Didier BOURRIAUD
*Expert Technique*
Tél. : +33 (0) 6.84.18.76.21 <undefined> - 8 rue Kervégan 44000 Nantes -
France
[image: Twitter] <https://twitter.com/KosmosEducation> [image: Linkedin]
<https://fr.linkedin.com/company/kosmos_2> [image: Youtube]
<https://www.youtube.com/user/kosmoseducation> www.kosmos-education.com
[image: Qualiopi] <https://www.skolengo.com/fr/accompagnement/formation>
Le jeu. 12 janv. 2023 à 07:59, Asad Hasan <[email protected]> a
écrit :
> Hi All ,
>
> Is there any good tool or web link to verify the yaml file .
>
> Thanks,
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Development" 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-devel/3352efc5-59d6-4304-8624-afe8346bff10n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-devel/3352efc5-59d6-4304-8624-afe8346bff10n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Development" 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-devel/CAAKfPhovnDyUOMT1Pja3bEYVxJN-6TKg4kkribbxh8U8rbs1AQ%40mail.gmail.com.