Ansible Development Environment (ade)

26.4.0 · active · verified Wed Apr 15

Ansible Development Environment (ade) is a command-line tool designed to manage isolated virtual environments for Ansible content development. It simplifies the installation and removal of Ansible collections, handles Python dependency resolution for collections, and ensures consistent and reproducible development workspaces. As of version 26.4.0, it promotes an "ephemeral" development approach and is typically released as part of the broader `ansible-dev-tools` package, which has a regular maintenance and release cadence.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to set up an isolated development environment for an Ansible collection using `ade`. It clones a sample collection, installs it in editable mode within a dedicated virtual environment, and then activates that environment for further development.

# Assuming you have a Git repository for your Ansible collection
# git clone https://github.com/your_namespace/your_collection.git
# cd your_collection

ade install -e . --venv .venv
# The above command creates a virtual environment '.venv' and installs
# your collection in editable mode, along with its dependencies.
# It also sets up isolation to prevent collection search path pollution.

source .venv/bin/activate

# Now you can use ansible-playbook, ansible-test, pytest, etc.,
# with the isolated environment and your collection.
ansible-galaxy collection list

view raw JSON →