Skip to main content
# ansible-coverage-callback

[![Latest version](https://img.shields.io/pypi/v/ansible-coverage-callback.svg)](https://pypi.python.org/pypi/ansible-coverage-callback/)
[![License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)

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

Metadata

Release files for ansible-coverage-callback 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ansible-coverage-callback 1.0.2
File Size Uploaded
ansible-coverage-callback-1.0.2.tar.gz 2.9 kB Details

Release files / ansible-coverage-callback-1.0.2.tar.gz

Download URL ansible-coverage-callback-1.0.2.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
02cd45976b1e44b0d7d8a9facb2ee457d655e91385e80c43c8b4270c23c84989
BLAKE2b-256 checksum
How to use checksums
e83c634ee5fa611821b0967e5bbe623dff615f04e6c64a67555ef21b00d886cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page