项目作者: trevor-viljoen

项目描述 :
Ansible Lint Rules
高级语言: Python
项目地址: git://github.com/trevor-viljoen/ansible-lint-rules.git
创建时间: 2019-07-11T22:48:09Z
项目社区:https://github.com/trevor-viljoen/ansible-lint-rules

开源协议:MIT License

下载


Ansible Lint Rules

Build Status
Coverage Status

This is a package of custom ansible-lint rules.

ID Version Added Sample Message Description Tags
ZL001 v0.1.0 master is a branch and not a valid tag in repo Forces requirements.yml role versions to use valid tagged references and not a branch head. meta, TagsOnly

Example Usage

  1. $ pip install ansible-lint gitpython
  2. $ ansible-lint -r ansible-lint-rules/rules -t TagsOnly requirements.yml
  3. [ZL001] master is a branch and not a valid tag in repo: https://github.com/geerlingguy/ansible-role-nginx
  4. test/bad_requirements.yml:2
  5. {'test/bad_requirements.yml': {'src': 'https://github.com/geerlingguy/ansible-role-nginx', 'version': 'master', '__line__': 2, '__file__': 'test/bad_requirements.yml'}}
  6. [ZL001] 0.0.0 is not a valid tag in repo: https://github.com/geerlingguy/ansible-role-certbot
  7. test/bad_requirements.yml:4
  8. {'test/bad_requirements.yml': {'src': 'https://github.com/geerlingguy/ansible-role-certbot', 'version': '0.0.0', '__line__': 4, '__file__': 'test/bad_requirements.yml'}}
  9. [ZL001] 0.0.0 is not a valid tag in repo: https://github.com/geerlingguy/ansible-role-elasticsearch
  10. test/bad_requirements.yml:6
  11. {'test/bad_requirements.yml': {'src': 'https://github.com/geerlingguy/ansible-role-elasticsearch', 'version': '0.0.0', '__line__': 6, '__file__': 'test/bad_requirements.yml'}}

Contributions Welcome

Questions?

License


MIT