Skip to main content

Ansible Lint GitLab

The ansible-lint JSON output to GitLab friendly JUnit converter.

Installation

via pip:

pip install ansible-lint-gitlab

Updating

via pip:

pip install ansible-lint-gitlab --upgrade

Usage:

  • You can run ansible-lint -f json on your playbook(s) and pipe the output in
    ansible-lint playbook.yml -f json | ansible-lint-gitlab -o ansible-lint-gitlab.xml
    
  • You can use a temporary file to store the output of ansible-lint. After that run ansible-lint-gitlab and pass the generated file to it
    ansible-lint -f json your_fancy_playbook.yml > ansible-lint.json
    ansible-lint-gitlab ansible-lint.json -o ansible-lint-gitlab.xml
    

Output

  • If there are any lint errors, full JUnit XML will be created.
  • If there are no errors, an empty JUnit XML will be created.

Development

This project is packaged with setuptools using a PEP 621 [project] table in pyproject.toml — there is no setup.py. The package version is declared dynamically and read from src/ansible_lint_gitlab/version.py, which is the single source of truth.

Build the distribution artifacts (sdist and wheel) with the build frontend:

pip install build
python -m build

Run the tests with pytest:

pip install pytest
pytest

Contributing

Commit messages must follow the Conventional Commits format, since releases and the CHANGELOG.md are produced automatically by semantic-release. See AGENTS.md for the accepted commit types and project conventions.

License

The ansible-lint-gitlab project is distributed under the MIT license.

Metadata

Release files for ansible-lint-gitlab 1.0.1

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-lint-gitlab 1.0.1
File Size Uploaded
ansible_lint_gitlab-1.0.1.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ansible-lint-gitlab 1.0.1
File Interpreter ABI Platform
ansible_lint_gitlab-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.8 kB

Release files / ansible_lint_gitlab-1.0.1.tar.gz

Download URL ansible_lint_gitlab-1.0.1.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1e6b57a2979d3d1cfdddc41203f34dc2b03bdb49c964f8b1571b34dedf432db7
BLAKE2b-256 checksum
How to use checksums
73773d3b16478c2673c33ed10ce7fb58aa88644e9b4de6d89ac3c862d9c744e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release files / ansible_lint_gitlab-1.0.1-py3-none-any.whl

Download URL ansible_lint_gitlab-1.0.1-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a84484547557a32c2925cd6479e8fec2ab90361cada98e58cf27baf0f09a3399
BLAKE2b-256 checksum
How to use checksums
d73e69f709113cfc5c67904db0fc658ab27c6739503eafe1e65d303c791d50e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

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