Skip to content

Commit

Permalink
Link fixes (ansible#39038)
Browse files Browse the repository at this point in the history
* fixes links on plugins pages

* fixes links in community pages

* fixes links in user guide

* adds anchors on playbooks pages
  • Loading branch information
Alicia Cozine authored and Alexander Bethke committed May 14, 2018
1 parent a74f64c commit bcec1b8
Show file tree
Hide file tree
Showing 17 changed files with 62 additions and 55 deletions.
2 changes: 2 additions & 0 deletions docs/docsite/rst/community/communication.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _communication:

*************
Communicating
*************
Expand Down
6 changes: 4 additions & 2 deletions docs/docsite/rst/community/maintainers.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _maintainers:

****************************
Module Maintainer Guidelines
****************************
Expand All @@ -8,8 +10,8 @@ Thank you for being a maintainer of part of Ansible's codebase. This guide provi

In addition to the information below, module maintainers should be familiar with:

* :ref:`General Ansible community development practices <../community>`
* Documentation on :ref:`module development <../dev_guide/developing_modules>`
* :ref:`General Ansible community development practices <ansible_community_guide>`
* Documentation on :ref:`module development <developing_modules>`


Maintainer Responsibilities
Expand Down
2 changes: 2 additions & 0 deletions docs/docsite/rst/community/reporting_bugs_and_features.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _reporting_bugs_and_features:

**************************************
Reporting Bugs And Requesting Features
**************************************
Expand Down
4 changes: 2 additions & 2 deletions docs/docsite/rst/plugins/action.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Action Plugins
:local:
:depth: 2

Action plugins act in conjunction with :doc:`modules <../modules>` to execute the actions required by playbook tasks.
Action plugins act in conjunction with :ref:`modules <working_with_modules>` to execute the actions required by playbook tasks.
They usually execute automatically in the background doing prerequisite work before modules execute.

The 'normal' action plugin is used for modules that do not already have an action plugin.
Expand All @@ -15,7 +15,7 @@ The 'normal' action plugin is used for modules that do not already have an actio
Enabling Action Plugins
-----------------------

You can enable a custom action plugin by either dropping it into the ``action_plugins`` directory adjacent to your play, inside a role, or by putting it in one of the action plugin directory sources configured in :doc:`ansible.cfg <../config>`.
You can enable a custom action plugin by either dropping it into the ``action_plugins`` directory adjacent to your play, inside a role, or by putting it in one of the action plugin directory sources configured in :ref:`ansible.cfg <ansible_configuration_settings>`.

.. _using_action:

Expand Down
4 changes: 2 additions & 2 deletions docs/docsite/rst/plugins/cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ or in the ``ansible.cfg`` file:
fact_caching=redis
You will also need to configure other settings specific to each plugin. Consult the individual plugin documentation
or the Ansible :doc:`configuration <../config>` for more details.
or the Ansible :ref:`configuration <ansible_configuration_settings>` for more details.

A custom cache plugin is enabled by dropping it into a ``cache_plugins`` directory adjacent to your play, inside a role, or by putting it in one of the directory sources configured in :doc:`ansible.cfg <../config>`.
A custom cache plugin is enabled by dropping it into a ``cache_plugins`` directory adjacent to your play, inside a role, or by putting it in one of the directory sources configured in :ref:`ansible.cfg <ansible_configuration_settings>`.


.. _using_cache:
Expand Down
8 changes: 4 additions & 4 deletions docs/docsite/rst/plugins/callback.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ but can also be used to add additional output, integrate with other tools and ma
Example Callback Plugins
++++++++++++++++++++++++

The :doc:`log_plays <callback/log_plays>` callback is an example of how to record playbook events to a log file,
The :doc:`_plays <callback/log_plays>` callback is an example of how to record playbook events to a log file,
and the :doc:`mail <callback/mail>` callback sends email on playbook failures.

The :doc:`osx_say <callback/oxs_say>` callback responds with computer synthesized speech on OS X in relation to playbook events.
Expand All @@ -24,11 +24,11 @@ The :doc:`osx_say <callback/oxs_say>` callback responds with computer synthesize
Enabling Callback Plugins
++++++++++++++++++++++++++

You can activate a custom callback by either dropping it into a ``callback_plugins`` directory adjacent to your play, inside a role, or by putting it in one of the callback directory sources configured in :doc:`ansible.cfg <../config>`.
You can activate a custom callback by either dropping it into a ``callback_plugins`` directory adjacent to your play, inside a role, or by putting it in one of the callback directory sources configured in :ref:`ansible.cfg <ansible_configuration_settings>`.

Plugins are loaded in alphanumeric order. For example, a plugin implemented in a file named `1_first.py` would run before a plugin file named `2_second.py`.

Most callbacks shipped with Ansible are disabled by default and need to be whitelisted in your :doc:`ansible.cfg <../config>` file in order to function. For example:
Most callbacks shipped with Ansible are disabled by default and need to be whitelisted in your :ref:`ansible.cfg <ansible_configuration_settings>` file in order to function. For example:

.. code-block:: ini
Expand All @@ -38,7 +38,7 @@ Most callbacks shipped with Ansible are disabled by default and need to be white
Managing stdout
```````````````

You can only have one plugin be the main manager of your console output. If you want to replace the default, you should define CALLBACK_TYPE = stdout in the subclass and then configure the stdout plugin in :doc:`ansible.cfg <../config>`. For example:
You can only have one plugin be the main manager of your console output. If you want to replace the default, you should define CALLBACK_TYPE = stdout in the subclass and then configure the stdout plugin in :ref:`ansible.cfg <ansible_configuration_settings>`. For example:

.. code-block:: ini
Expand Down
31 changes: 15 additions & 16 deletions docs/docsite/rst/plugins/connection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@ Connection plugins allow Ansible to connect to the target hosts so it can execut

By default, Ansible ships with several plugins. The most commonly used are the 'paramiko' SSH, native ssh (just called 'ssh'), and 'local' connection types. All of these can be used in playbooks and with /usr/bin/ansible to decide how you want to talk to remote machines.

The basics of these connection types are covered in the :doc:`../intro_getting_started` section.

The basics of these connection types are covered in the :ref:`getting started<intro_getting_started>` section.


.. _ssh_plugins:

ssh Plugins
+++++++++++

Because ssh is the default protocol used in system administration and the protocol most used in Ansible, ssh options are included in the command line tools. See :doc:`../ansible-playbook` for more details.
Because ssh is the default protocol used in system administration and the protocol most used in Ansible, ssh options are included in the command line tools. See :ref:`ansible-playbook` for more details.

.. _enabling_connection:

Expand All @@ -33,22 +32,22 @@ into the ``connection_plugins`` directory.
Using Connection Plugins
++++++++++++++++++++++++

The transport can be changed via :doc:`configuration <../config>`, in the command line (``-c``, ``--connection``), as a keyword (:ref:`connection`)
in your play, or by setting the a connection variable (:ref:`ansible_connection`), most often in your inventory.
For example, for Windows machines you might want to use the :doc:`winrm <connection/winrm>` plugin.
The transport can be changed via :ref:`configuration<ansible_configuration_settings>`, in the command line (``-c``, ``--connection``), as a :ref:`keyword<playbooks_keywords>`)
in your play, or by setting a :ref:`variable<behavioral_parameters>`, most often in your inventory.
For example, for Windows machines you might want to use the :doc:`winrm<connection/winrm>` plugin.

Most connection plugins can operate with a minimum configuration. By default they use the :ref:`inventory_hostname` and defaults to find the target host.
Most connection plugins can operate with a minimum configuration. By default they use the :ref:`inventory hostname<inventory_hostname>` and defaults to find the target host.

Plugins are self-documenting. Each plugin should document its configuration options. The following are connection variables common to most connection plugins:

:ref:`ansible_host`
The name of the host to connect to, if different from the :ref:`inventory_hostname`.
:ref:`ansible_port`
:ref:`ansible_host<ansible_host>`
The name of the host to connect to, if different from the :ref:`inventory hostname<inventory_hostname>`.
:ref:`ansible_port<ansible_port>`
The ssh port number, for :doc:`ssh <connection/ssh>` and :doc:`paramiko <connection/paramiko>` it defaults to 22.
:ref:`ansible_user`
:ref:`ansible_user<ansible_user>`
The default user name to use for log in. Most plugins default to the 'current user running Ansible'.

Each plugin might also have a specific version of a variable that overrides the general version. For example, :ref:`ansible_ssh_host` for the :doc:`ssh <connection/ssh>` plugin.
Each plugin might also have a specific version of a variable that overrides the general version. For example, :ref:`ansible_ssh_host<ansible_ssh_host>` for the :doc:`ssh <connection/ssh>` plugin.

.. _connection_plugin_list:

Expand All @@ -67,15 +66,15 @@ Use ``ansible-doc -t connection <plugin name>`` to see detailed documentation an

.. seealso::

:doc:`../playbooks`
:ref:`Working with Playbooks<working_with_playbooks>`
An introduction to playbooks
:doc:`callback`
Ansible callback plugins
:doc:`../playbooks_filters`
:ref:`Filters<playbooks_filters>`
Jinja2 filter plugins
:doc:`../playbooks_tests`
:ref:`Tests<playbooks_tests>`
Jinja2 test plugins
:doc:`../playbooks_lookups`
:ref:`Lookups<playbooks_lookups>`
Jinja2 lookup plugins
:doc:`vars`
Ansible vars plugins
Expand Down
10 changes: 5 additions & 5 deletions docs/docsite/rst/plugins/inventory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Enabling Inventory Plugins
++++++++++++++++++++++++++

Most inventory plugins shipped with Ansible are disabled by default and need to be whitelisted in your
:doc:`ansible.cfg <../config>` file in order to function. This is how the default whitelist looks in the
:ref:`ansible.cfg <ansible_configuration_settings>` file in order to function. This is how the default whitelist looks in the
config file that ships with Ansible:

.. code-block:: ini
Expand Down Expand Up @@ -54,17 +54,17 @@ Use ``ansible-doc -t inventory <plugin name>`` to see plugin-specific documentat

.. seealso::

:doc:`../playbooks`
:ref:`about_playbooks`
An introduction to playbooks
:doc:`callback`
Ansible callback plugins
:doc:`connection`
Ansible connection plugins
:doc:`../playbooks_filters`
:ref:`playbooks_filters`
Jinja2 filter plugins
:doc:`../playbooks_tests`
:ref:`playbooks_tests`
Jinja2 test plugins
:doc:`../playbooks_lookups`
:ref:`playbooks_lookups`
Jinja2 lookup plugins
:doc:`vars`
Ansible vars plugins
Expand Down
14 changes: 7 additions & 7 deletions docs/docsite/rst/plugins/lookup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ Lookups are an Ansible-specific extension to the Jinja2 templating language.
Enabling Lookup Plugins
+++++++++++++++++++++++

You can activate a custom lookup by either dropping it into a ``lookup_plugins`` directory adjacent to your play, inside a role, or by putting it in one of the lookup directory sources configured in :doc:`ansible.cfg <../config>`.
You can activate a custom lookup by either dropping it into a ``lookup_plugins`` directory adjacent to your play, inside a role, or by putting it in one of the lookup directory sources configured in :ref:`ansible.cfg <ansible_configuration_settings>`.


.. _using_lookup:

Using Lookup Plugins
++++++++++++++++++++

Lookup plugins can be used anywhere you can use templating in Ansible: in a play, in variables file, or in a Jinja2 template for the :doc:`template <../template_module>` module.
Lookup plugins can be used anywhere you can use templating in Ansible: in a play, in variables file, or in a Jinja2 template for the :ref:`template <template_module>` module.

.. code-block:: yaml
Expand All @@ -53,7 +53,7 @@ This is also the reason most lookups output lists and take lists as input; for e
debug: msg={{item}}
with_items: [1, 2, 3]
You can combine lookups with :doc:`../playbooks_filters`, :doc:`../playbooks_tests` and even each other to do some complex data generation and maniplulation. For example:
You can combine lookups with :ref:`playbooks_filters`, :ref:`playbooks_tests` and even each other to do some complex data generation and manipulation. For example:

.. code-block:: yaml
Expand Down Expand Up @@ -81,17 +81,17 @@ You can use ``ansible-doc -t lookup -l`` to see the list of available plugins. U

.. seealso::

:doc:`../playbooks`
:ref:`about_playbooks`
An introduction to playbooks
:doc:`inventory`
Ansible inventory plugins
:doc:`callback`
Ansible callback plugins
:doc:`../playbooks_filters`
:ref:`playbooks_filters`
Jinja2 filter plugins
:doc:`../playbooks_tests`
:ref:`playbooks_tests`
Jinja2 test plugins
:doc:`../playbooks_lookups`
:ref:`playbooks_lookups`
Jinja2 lookup plugins
`User Mailing List <http://groups.google.com/group/ansible-devel>`_
Have a question? Stop by the google group!
Expand Down
6 changes: 3 additions & 3 deletions docs/docsite/rst/plugins/plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ This section covers the various types of plugins that are included with Ansible:

.. seealso::

:doc:`playbooks`
:ref:`about_playbooks`
An introduction to playbooks
:doc:`config`
:ref:`ansible_configuration_settings`
Ansible configuration documentation and settings
:doc:`command_line_tools`
:doc:`../user_guide/command_line_tools`
Ansible tools, description and options
`User Mailing List <http://groups.google.com/group/ansible-devel>`_
Have a question? Stop by the google group!
Expand Down
8 changes: 4 additions & 4 deletions docs/docsite/rst/plugins/shell.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ Enabling Shell Plugins
++++++++++++++++++++++

You can add a custom shell plugin by dropping it into a ``shell_plugins`` directory adjacent to your play, inside a role,
or by putting it in one of the shell plugin directory sources configured in :doc:`ansible.cfg <../config>`.
or by putting it in one of the shell plugin directory sources configured in :ref:`ansible.cfg <ansible_configuration_settings>`.

.. warning:: You should not alter which plugin is used unless you have a setup in which the default ``/bin/sh``
is not a POSIX compatible shell or is not availble for execution.
is not a POSIX compatible shell or is not available for execution.

.. _using_shell:

Using Shell Plugins
+++++++++++++++++++

In addition to the default configuration settings in :doc:`../config`, you can use
In addition to the default configuration settings in :ref:`ansible_configuration_settings`, you can use
a 'connection variable' :ref:`ansible_shell_type` to select the plugin to use.
In this case, you will also want to update the :ref:`ansible_executable` to match.

You can further control the settings for each plugin via other configuration options
detailed in the plugin themsleves (linked below).
detailed in the plugin themselves (linked below).

.. toctree:: :maxdepth: 1
:glob:
Expand Down
12 changes: 6 additions & 6 deletions docs/docsite/rst/plugins/strategy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Enabling Strategy Plugins
+++++++++++++++++++++++++

Strategy plugins shipped with Ansible are enabled by default. You can enable a custom strategy plugin by
putting it in one of the lookup directory sources configured in :doc:`ansible.cfg <../config>`.
putting it in one of the lookup directory sources configured in :ref:`ansible.cfg <ansible_configuration_settings>`.


.. _using_strategy:
Expand All @@ -21,7 +21,7 @@ Using Strategy Plugins
++++++++++++++++++++++

Only one strategy plugin can be used in a play, but you can use different ones for each play in a playbook or ansible run.
The default is the :doc:`linear <strategy/linear>` plugin. You can change this default in Ansible :doc:`configuration <../config>` using an environment variable:
The default is the :doc:`linear <strategy/linear>` plugin. You can change this default in Ansible :ref:`configuration <ansible_configuration_settings>` using an environment variable:

.. code-block:: shell
Expand Down Expand Up @@ -64,17 +64,17 @@ Use ``ansible-doc -t strategy <plugin name>`` to see plugin-specific specific do

.. seealso::

:doc:`../playbooks`
:ref:`about_playbooks`
An introduction to playbooks
:doc:`inventory`
Ansible inventory plugins
:doc:`callback`
Ansible callback plugins
:doc:`../playbooks_filters`
:ref:`playbooks_filters`
Jinja2 filter plugins
:doc:`../playbooks_tests`
:ref:`playbooks_tests`
Jinja2 test plugins
:doc:`../playbooks_lookups`
:ref:`playbooks_lookups`
Jinja2 lookup plugins
`User Mailing List <http://groups.google.com/group/ansible-devel>`_
Have a question? Stop by the google group!
Expand Down
2 changes: 1 addition & 1 deletion docs/docsite/rst/plugins/vars.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The :doc:`host_group_vars <vars/host_group_vars>` plugin shipped with Ansible en
Enabling Vars Plugins
+++++++++++++++++++++

You can activate a custom vars plugins by either dropping it into a ``vars_plugins`` directory adjacent to your play, inside a role, or by putting it in one of the directory sources configured in :doc:`ansible.cfg <../config>`.
You can activate a custom vars plugins by either dropping it into a ``vars_plugins`` directory adjacent to your play, inside a role, or by putting it in one of the directory sources configured in :ref:`ansible.cfg <ansible_configuration_settings>`.


.. _using_vars:
Expand Down
2 changes: 1 addition & 1 deletion docs/docsite/rst/user_guide/intro_getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Getting Started
Foreword
````````

Now that you've read :ref:`intro_installation` and installed Ansible, it's time to get
Now that you've read the :ref:`installation guide<installation_guide>` and installed Ansible, it's time to get
started with some ad-hoc commands.

What we are showing first are not the powerful configuration/deployment/orchestration features of Ansible.
Expand Down
2 changes: 2 additions & 0 deletions docs/docsite/rst/user_guide/playbooks_lookups.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _playbooks_lookups:

Lookups
-------

Expand Down
2 changes: 1 addition & 1 deletion docs/docsite/rst/user_guide/playbooks_reuse_includes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Please refer to :doc:`playbooks_reuse_roles` for details on including and import
Loops in playbooks
:ref:`all_modules`
Learn about available modules
:red:`developing_modules`
:ref:`developing_modules`
Learn how to extend Ansible by writing your own modules
`GitHub Ansible examples <https://github.com/ansible/ansible-examples>`_
Complete playbook files from the GitHub project source
Expand Down
2 changes: 1 addition & 1 deletion docs/docsite/rst/user_guide/playbooks_tests.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. _playbook_tests:
.. _playbooks_tests:

Tests
-----
Expand Down

0 comments on commit bcec1b8

Please sign in to comment.