moueza / webinaire-Red-Hat-Ansible

RDV Red Hat Ansible Mercredi, 10 mars⋅10:00 à 12:00 Calendar
Apache License 2.0
0 stars 0 forks source link

Ansible lint #2

Closed moueza closed 3 years ago

moueza commented 3 years ago

https://ansible-lint.readthedocs.io/en/latest/installing.html

sudo docker run -h toolset -it quay.io/ansible/toolset ansible-lint --version

moueza commented 3 years ago

sudo docker run -h toolset -it quay.io/ansible/toolset ansible-lint /home/peter/POUB/webinaire-Red-Hat-Ansible/examplDoc.yaml

WARNING Overriding detected file kind 'yaml' with 'playbook' for given positional argument: /home/peter/POUB/webinaire-Red-Hat-Ansible/examplDoc.yaml WARNING Failed to discover yaml files to lint using git: fatal: not a git repository (or any of the parent directories): .git WARNING Listing 1 violation(s) that are fatal

moueza commented 3 years ago

pip install "ansible-lint[yamllint]"