Giter Club home page Giter Club logo

ansible-lint-rules's Introduction

Rules for ansible-lint travisstatus

This is a rule set for ansible-lint .

How to use

  1. Install ansible-lint (ex: pip install ansible-lint)
  2. Copy or git clone on your ansible playbook repository with rules name
  3. Run ansible lint with -r rules flag (ex: ansible-lint -r rules <your playbook file>)

Rules

code sample message
E3 Task
E302 Include should has tags
E303 Use ":" YAML syntax when arguments are over 4
E306 Variable should be lowercase "{{ foo }}"
E4 Module
E402 Template file should has '.j2' extension
E403 Yum shouldn't has with_items argument
E404 Pip shouldn't has with_items argument
E6 Formatting
E603 Use true/false instead of yes/no
E604 true/false should be started from non-capitalized letter
E7 Metadata
E704 Incorrect Dependencies in meta
E706 Absent Role name in meta
E707 Incorrect Issue tracker in meta

Why so many shell module lint?

Because user may want to use a command to correct use. Since we separate these rule, user can disable specific rule easily.

If you can manage playbook your self, consider set skip_ansible_lint tag.

Original repo

tsukinowasha/ansible-lint-rules

These rules are used in the Tsukinowa Inc. , but anyone can use with the license (MIT).

License

MIT License (same as ansible-lint)

ansible-lint-rules's People

Contributors

bbaassssiiee avatar maksimshchuplov avatar mkarpin avatar nootal avatar pavelpikta avatar rvben avatar shirou avatar tgadiev avatar ultral avatar zenwerk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.