Ansible linter

  • link

  • installation
    sudo pip install ansible-lint
    
  • check available rules
    ansible-lint  -T
    
  • run the linter without relevant rules - for example, exclude readbility and formatting rules :
    ansible-lint -x formatting,502 <playbook>/<rules dir>
    

cloudformation linter

  • link

  • installation
    sudo pip install cfn-lint
    
  • check available rules
    cfn-lint -l
    
  • run the linter
    cfn-lint -t <cloudformation template>
    

Kubernetes linter

  • link

  • installation

  • run the linter

    kubeval -v 1.6.6 my-deployment.yaml
    kubeval --openshift -v 1.5.1 my-deployment.yaml