mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Updates to docs for developers (#24034)
- Added items to index for TOC - Changed some formatting on overview_architecture - removed some out of date items from developing_modules_general
This commit is contained in:
parent
830f19d444
commit
6f4f7011f1
3 changed files with 17 additions and 17 deletions
|
@ -23,7 +23,7 @@ modules. Keep in mind, though, that some modules in Ansible's source tree are
|
||||||
so look at :ref:`service` or :ref:`yum`, and don't stare too close into things like ``async_wrapper`` or
|
so look at :ref:`service` or :ref:`yum`, and don't stare too close into things like ``async_wrapper`` or
|
||||||
you'll turn to stone. Nobody ever executes ``async_wrapper`` directly.
|
you'll turn to stone. Nobody ever executes ``async_wrapper`` directly.
|
||||||
|
|
||||||
Ok, let's get going with an example. We'll use Python. For starters, save this as a file named :file:`timetest.py`
|
Ok, let's get going with an example. We're going to use Python. For starters, save this as a file named :file:`timetest.py`
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ There's a useful test script in the source checkout for Ansible:
|
||||||
|
|
||||||
.. code-block:: shell-session
|
.. code-block:: shell-session
|
||||||
|
|
||||||
git clone git://github.com/ansible/ansible.git --recursive
|
git clone git://github.com/ansible/ansible.git
|
||||||
source ansible/hacking/env-setup
|
source ansible/hacking/env-setup
|
||||||
|
|
||||||
For instructions on setting up Ansible from source, please see
|
For instructions on setting up Ansible from source, please see
|
||||||
|
@ -331,6 +331,3 @@ system state is altered when the user enables check mode.
|
||||||
|
|
||||||
If your module does not support check mode, when the user runs Ansible in check
|
If your module does not support check mode, when the user runs Ansible in check
|
||||||
mode, your module will simply be skipped.
|
mode, your module will simply be skipped.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -17,16 +17,22 @@ To get started, select one of the following topics.
|
||||||
|
|
||||||
overview_architecture
|
overview_architecture
|
||||||
developing_modules
|
developing_modules
|
||||||
testing
|
developing_modules_general
|
||||||
developing_python3
|
developing_modules_documenting
|
||||||
|
developing_modules_best_practices
|
||||||
|
developing_modules_checklist
|
||||||
|
developing_modules_in_groups
|
||||||
|
developing_program_flow_modules
|
||||||
|
developing_module_utilities
|
||||||
developing_plugins
|
developing_plugins
|
||||||
developing_inventory
|
developing_inventory
|
||||||
developing_api
|
|
||||||
developing_module_utilities
|
|
||||||
developing_core
|
developing_core
|
||||||
|
developing_python3
|
||||||
|
developing_api
|
||||||
|
developing_test_pr
|
||||||
developing_rebasing
|
developing_rebasing
|
||||||
|
testing
|
||||||
repomerge
|
repomerge
|
||||||
developing_releases
|
developing_releases
|
||||||
../committer_guidelines
|
../committer_guidelines
|
||||||
./style_guide/index
|
./style_guide/index
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ Ansible works by connecting to your nodes and pushing out small programs, called
|
||||||
Your library of modules can reside on any machine, and there are no servers, daemons, or databases required. Typically you'll work with your favorite terminal program, a text editor, and probably a version control system to keep track of changes to your content.
|
Your library of modules can reside on any machine, and there are no servers, daemons, or databases required. Typically you'll work with your favorite terminal program, a text editor, and probably a version control system to keep track of changes to your content.
|
||||||
|
|
||||||
Plugins
|
Plugins
|
||||||
-------
|
``````````````````
|
||||||
|
|
||||||
Plugins are pieces of code that augment Ansible's core functionality. Ansible ships with a number of handy plugins, and you can easily write your own.
|
Plugins are pieces of code that augment Ansible's core functionality. Ansible ships with a number of handy plugins, and you can easily write your own.
|
||||||
|
|
||||||
|
@ -70,6 +70,3 @@ Extending Ansible with Plug-ins and the API
|
||||||
````````````````````````````````````````````
|
````````````````````````````````````````````
|
||||||
|
|
||||||
Should you want to write your own, Ansible modules can be written in any language that can return JSON (Ruby, Python, bash, etc). Inventory can also plug in to any datasource by writing a program that speaks to that datasource and returns JSON. There's also various Python APIs for extending Ansible’s connection types (SSH is not the only transport possible), callbacks (how Ansible logs, etc), and even for adding new server side behaviors.
|
Should you want to write your own, Ansible modules can be written in any language that can return JSON (Ruby, Python, bash, etc). Inventory can also plug in to any datasource by writing a program that speaks to that datasource and returns JSON. There's also various Python APIs for extending Ansible’s connection types (SSH is not the only transport possible), callbacks (how Ansible logs, etc), and even for adding new server side behaviors.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue