2018-11-26 20:00:26 +01:00
.. _developer_guide:
2018-02-13 16:23:55 +01:00
***** ***** *****
Developer Guide
***** ***** *****
2016-09-23 22:48:37 +02:00
Welcome to the Ansible Developer Guide!
2018-09-07 15:57:36 +02:00
**Who should use this guide?**
2016-09-23 22:48:37 +02:00
2018-09-07 15:57:36 +02:00
If you want to extend Ansible by using a custom module or plugin locally, creating a module or plugin, adding functionality to an existing module, or expanding test coverage, this guide is for you. We've included detailed information for developers on how to test and document modules, as well as the prerequisites for getting your module or plugin accepted into the main Ansible repository.
2016-09-23 22:48:37 +02:00
2018-09-07 15:57:36 +02:00
Find the task that best describes what you want to do:
* I'm looking for a way to address a use case:
* I want to :ref: `add a custom plugin or module locally <developing_locally>` .
* I want to figure out if :ref: `developing a module is the right approach <module_dev_should_you>` for my use case.
2019-09-19 22:09:19 +02:00
* I want to :ref: `develop a collection <developing_collections>` .
2020-06-15 22:38:42 +02:00
* I want to :ref: `contribute to an Ansible-maintained collection <contributing_maintained_collections>` .
2020-05-04 22:59:54 +02:00
* I want to :ref: `migrate a role to a collection <migrating_roles>` .
2018-09-07 15:57:36 +02:00
2018-11-26 20:00:26 +01:00
* I've read the info above, and I'm sure I want to develop a module:
2018-09-07 15:57:36 +02:00
2018-11-26 20:00:26 +01:00
* What do I need to know before I start coding?
2018-09-07 15:57:36 +02:00
* I want to :ref: `set up my Python development environment <environment_setup>` .
* I want to :ref: `get started writing a module <developing_modules_general>` .
2019-05-16 16:05:12 +02:00
* I want to write a specific kind of module:
* a :ref: `network module <developing_modules_network>`
* a :ref: `Windows module <developing_modules_general_windows>` .
* an :ref: `Amazon module <AWS_module_development>` .
* an :ref: `OpenStack module <OpenStack_module_development>` .
* an :ref: `oVirt/RHV module <oVirt_module_development>` .
2019-05-22 22:01:36 +02:00
* a :ref: `VMware module <VMware_module_development>` .
2018-09-07 15:57:36 +02:00
* I want to :ref: `write a series of related modules <developing_modules_in_groups>` that integrate Ansible with a new product (for example, a database, cloud provider, network platform, etc.).
* I want to refine my code:
2020-07-29 18:14:49 +02:00
* I want to :ref: `debug my module code <debugging_modules>` .
2018-11-26 20:00:26 +01:00
* I want to :ref: `add tests <developing_testing>` .
2018-09-07 15:57:36 +02:00
* I want to :ref: `document my module <module_documenting>` .
2019-06-18 22:35:09 +02:00
* I want to :ref: `document my set of modules for a network platform <documenting_modules_network>` .
2019-04-17 20:30:34 +02:00
* I want to follow :ref: `conventions and tips for clean, usable module code <developing_modules_best_practices>` .
2018-09-07 15:57:36 +02:00
* I want to :ref: `make sure my code runs on Python 2 and Python 3 <developing_python_3>` .
* I want to work on other development projects:
* I want to :ref: `write a plugin <developing_plugins>` .
* I want to :ref: `connect Ansible to a new source of inventory <developing_inventory>` .
* I want to :ref: `deprecate an outdated module <deprecating_modules>` .
2018-09-18 21:47:22 +02:00
* I want to contribute back to the Ansible project:
2018-11-26 20:00:26 +01:00
* I want to :ref: `understand how to contribute to Ansible <ansible_community_guide>` .
2018-09-18 21:47:22 +02:00
* I want to :ref: `contribute my module or plugin <developing_modules_checklist>` .
* I want to :ref: `understand the license agreement <contributor_license_agreement>` for contributions to Ansible.
2018-09-07 15:57:36 +02:00
If you prefer to read the entire guide, here's a list of the pages in order.
2016-09-23 22:48:37 +02:00
.. toctree ::
2018-02-13 16:23:55 +01:00
:maxdepth: 2
2016-09-23 22:48:37 +02:00
2018-09-07 15:57:36 +02:00
developing_locally
2016-09-23 22:48:37 +02:00
developing_modules
2018-09-07 15:57:36 +02:00
developing_modules_general
developing_modules_checklist
developing_modules_best_practices
developing_python_3
debugging
developing_modules_documenting
developing_modules_general_windows
2018-09-13 02:28:12 +02:00
developing_modules_general_aci
2019-05-16 16:05:12 +02:00
platforms/aws_guidelines
platforms/openstack_guidelines
platforms/ovirt_dev_guide
2019-05-22 22:01:36 +02:00
platforms/vmware_guidelines
2018-09-07 15:57:36 +02:00
developing_modules_in_groups
testing
module_lifecycle
2016-09-23 22:48:37 +02:00
developing_plugins
developing_inventory
developing_core
2018-09-07 15:57:36 +02:00
developing_program_flow_modules
2017-05-08 18:08:55 +02:00
developing_api
2016-12-21 21:48:41 +01:00
developing_rebasing
2018-09-07 15:57:36 +02:00
developing_module_utilities
2019-09-19 22:09:19 +02:00
developing_collections
2020-06-15 22:38:42 +02:00
migrating_roles
2019-07-22 22:50:46 +02:00
collections_galaxy_meta
2020-05-04 22:59:54 +02:00
migrating_roles
2018-09-07 15:57:36 +02:00
overview_architecture