Skip to main content

CLI for Ansible role & playbook analysis & visualization

Project description

Ansible Analyzer

ansible-analyzer lets you visualize one or all playbooks from your project by building a graph representation of each playbook and role task included.

Requirements

You need to install the graphviz OS package in order to use this CLI:

  • macOS - brew install graphviz
  • Debian/Ubuntu - apt install graphviz
  • Fedora - dnf install graphviz
  • Arch Linux - pacman -Sy graphviz

Usage

To analyze a specific playbook, run:

ansible-analyzer playbook -r *roles_dir* -f *playbook_path* -o *output_path*

where

  • -r is for the local directory containing roles
  • -f is for the playbook file path
  • -o (optional) is for the graph .png output path

To analyze all the playbooks in a given directory, run:

ansible-analyzer all -r *roles_dir* -d *playbooks_dir* -o *output_path*

where

  • -r is for the local directory containing roles
  • -d is for the local directory containing playbooks to be analyzed
  • -o (optional) is for the graph .png output path

Finally, the CLI will save a .png file containing a graph representation of your project similar to the following: example graph

To print role & task statistics, use -s. To disable graph output, use --no-out.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ansible_analyzer-0.1.2.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ansible_analyzer-0.1.2-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file ansible_analyzer-0.1.2.tar.gz.

File metadata

  • Download URL: ansible_analyzer-0.1.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ansible_analyzer-0.1.2.tar.gz
Algorithm Hash digest
SHA256 770ed273a18ddf5b53796542bcc3e987370d461dbeab953516d853c72dfaf178
MD5 26c6552ead426b56a1f187d219d21aed
BLAKE2b-256 c0297d4ba55abe7aa98f8d0429e4625fdcc046472b79aeda0303ae0eebd1ae11

See more details on using hashes here.

File details

Details for the file ansible_analyzer-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ansible_analyzer-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ansible_analyzer-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 743814d69304cf03e3bf2e29722c92d9955f67e91edb9a57936eb721232931b9
MD5 1bf4e60136f0a8dd75c670cc44791907
BLAKE2b-256 d34c0a962d9704a1f0d7fa5228b9196e34219d2c7746c2a0e70cdea010d745e1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page