Skip to content

trevor-viljoen/ansible-lint-rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

$ pip install ansible-lint gitpython
$ ansible-lint -r ansible-lint-rules/rules -t TagsOnly requirements.yml
[ZL001] master is a branch and not a valid tag in repo: https://github.com/geerlingguy/ansible-role-nginx
test/bad_requirements.yml:2
{'test/bad_requirements.yml': {'src': 'https://github.com/geerlingguy/ansible-role-nginx', 'version': 'master', '__line__': 2, '__file__': 'test/bad_requirements.yml'}}

[ZL001] 0.0.0 is not a valid tag in repo: https://github.com/geerlingguy/ansible-role-certbot
test/bad_requirements.yml:4
{'test/bad_requirements.yml': {'src': 'https://github.com/geerlingguy/ansible-role-certbot', 'version': '0.0.0', '__line__': 4, '__file__': 'test/bad_requirements.yml'}}

[ZL001] 0.0.0 is not a valid tag in repo: https://github.com/geerlingguy/ansible-role-elasticsearch
test/bad_requirements.yml:6
{'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