Skip to main content

Ansible Developtment Tools kit bundles all tools needed for content creation and testing.

Project description

Ansible Development Tools (ADT)

The ansible-dev-tools python package provides an easy way to install and discover the best tools available to create and test ansible content.

The curated list of tools installed as part of the Ansible automation developer tools package includes:

ansible-core: Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy and maintain. Automate everything from code deployment to network configuration to cloud management, in a language that approaches plain English, using SSH, with no agents to install on remote systems.

ansible-builder: Ansible Builder is a tool that automates the process of building execution environments using the schemas and tooling defined in various Ansible Collections and by the user.

ansible-creator: The fastest way to generate all your ansible content!

ansible-lint: Checks playbooks for practices and behavior that could potentially be improved.

ansible-navigator A text-based user interface (TUI) for Ansible.

ansible-sign: Utility for signing and verifying Ansible project directory contents.

molecule: Molecule aids in the development and testing of Ansible content: collections, playbooks and roles

pytest-ansible: A pytest plugin that enables the use of ansible in tests, enables the use of pytest as a collection unit test runner, and exposes molecule scenarios using a pytest fixture.

tox-ansible: The tox-ansible plugin dynamically creates a full matrix of python interpreter and ansible-core version environments for running integration, sanity, and unit for an ansible collection both locally and in a Github action. tox virtual environments are leveraged for collection building, collection installation, dependency installation, and testing.

ansible-dev-environment: A pip-like install for Ansible collections.

Communication

Refer to our Communication guide for details.

Installation

python3 -m pip install ansible-dev-tools

A VsCode compatible devcontainer is also available which is a great way to develop ansible content. The image name is community-ansible-dev-tools.

Usage

In addition to installing each of the above tools, ansible-dev-tools provides an easy way to show the versions of the content creation tools that make up the current development environment.

$ adt --version
ansible-builder                          <version>
ansible-core                             <version>
ansible-creator                          <version>
ansible-dev-environment                  <version>
ansible-dev-tools                        <version>
ansible-lint                             <version>
ansible-navigator                        <version>
ansible-sign                             <version>
molecule                                 <version>
pytest-ansible                           <version>
tox-ansible                              <version>

Developer Notes

The ansible-dev-tools package also offers an Ansible Devtools server which can be launched with adt server. Currently, this server only supports REST APIs for ansible-creator.

Refer to the server code for available endpoints.

To run this server from the community dev-tools container, use the following command:

$ podman run -d -p 8000:8000 --name=ansible-devtools-server ghcr.io/ansible/community-ansible-dev-tools:latest adt server
778d0423863c5c161b4bdcb6177d169f0897c597ff084c7a0d3401814d78174f
$ podman logs -f ansible-devtools-server
[2024-04-25 17:28:02 +0000] [10] [INFO] Starting gunicorn 22.0.0
[2024-04-25 17:28:02 +0000] [10] [INFO] Listening at: http://0.0.0.0:8000 (10)
[2024-04-25 17:28:02 +0000] [10] [INFO] Using worker: sync
[2024-04-25 17:28:02 +0000] [11] [INFO] Booting worker with pid: 11

Note: This is primarily for backend integrations and is not intended to be an user-facing functionality.

Documentation

For more information, please visit our documentation page.

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_dev_tools-24.9.0.tar.gz (897.1 kB view details)

Uploaded Source

Built Distribution

ansible_dev_tools-24.9.0-py3-none-any.whl (26.0 kB view details)

Uploaded Python 3

File details

Details for the file ansible_dev_tools-24.9.0.tar.gz.

File metadata

  • Download URL: ansible_dev_tools-24.9.0.tar.gz
  • Upload date:
  • Size: 897.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for ansible_dev_tools-24.9.0.tar.gz
Algorithm Hash digest
SHA256 f48d0b7e781d61863ac660ac0210905a673c36fe4c44cd53737d9e930fc0b71e
MD5 70b08a39c063cb788b78cc80941f9498
BLAKE2b-256 d4ef204a412a620e8584c0519f069e2e374bb3a73662a5f32892761a88c14634

See more details on using hashes here.

File details

Details for the file ansible_dev_tools-24.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ansible_dev_tools-24.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 288bdfaed82a5f125ea84743a652c749e3d474e95c36b4c0da5b4638677ab0a0
MD5 860dbb77abc723f43a09609a5dc2310c
BLAKE2b-256 ce33d3bf68e412872c3f6a9f87125afa5d2d1a7fef125c056643af67ab612a68

See more details on using hashes here.

Supported by

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