Re: [ansible-devel] YAML File check

2023-01-12 Thread Brian Coca
Most yaml linters will only tell you if the file is valid YAML and to theri opinion/spec, which is not always what Ansible uses, we relly on pyyaml which is following YAML 1.1 spec. You have ansible-lint as a general tools, but if you just want a quick test for playbooks `ansbile-playbook

Re: [ansible-devel] YAML File check

2023-01-12 Thread Didier BOURRIAUD
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