Skip to content

dingus9/ansible-coverage-callback

 
 

Repository files navigation

ansible-coverage-callback

Latest version License

Coverage Tool for Ansible.

Requirements

  • Ansible >=2.4

Installation

Install this Ansible plugin with:

$ pip install ansible-coverage-callback

Be sure to whitelist the plugin in your ansible.cfg:

[defaults]
callback_whitelist = coverage

Skip coverage tag

You may skip task or tasks from coverage report by adding skip_coverage tag:

---
- name: Test handler
  command: whoami
  when:
    - test_var == False
  tags:
    - skip_coverage

Acknowledged issues

  • Imported handlers has no tags, so they can't be skipped
  • There is some magic hacks for skipping Molecule's system playbooks
  • Tasks from non imported files are not counted

About

Simple Ansible Coverage callback

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%