From 5bdc6636bc1272d6bffb47e947823b40f85903e3 Mon Sep 17 00:00:00 2001 From: Esa Varemo Date: Mon, 25 Feb 2019 23:35:34 +0200 Subject: [PATCH] Fix the example plugin paths (#52881) Based on https://docs.ansible.com/ansible/latest/reference_appendices/config.html the default callback paths do not contain `_plugin`. Thus `~/.ansible/plugins/callback_plugins` and `/usr/share/ansible/plugins/plugin_type/action_plugins` are incorrect. Verified on 2.7.5 that by default `plugins/action` works and `plugins/action_plugins` does not. --- docs/docsite/rst/dev_guide/developing_locally.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docsite/rst/dev_guide/developing_locally.rst b/docs/docsite/rst/dev_guide/developing_locally.rst index 980ebbd0f2..0bf69a2998 100644 --- a/docs/docsite/rst/dev_guide/developing_locally.rst +++ b/docs/docsite/rst/dev_guide/developing_locally.rst @@ -75,8 +75,8 @@ Ansible loads plugins automatically too, loading each type of plugin separately You can create or add a local plugin in any of these locations: * any directory added to the relevant ``ANSIBLE_plugin_type_PLUGINS`` environment variable (these variables, such as ``$ANSIBLE_INVENTORY_PLUGINS`` and ``$ANSIBLE_VARS_PLUGINS`` take colon-separated lists like ``$PATH``) -* the directory named for the correct ``plugin_type`` within ``~/.ansible/plugins/`` - for example, ``~/.ansible/plugins/callback_plugins`` -* the directory named for the correct ``plugin_type`` within ``/usr/share/ansible/plugins/`` - for example, ``/usr/share/ansible/plugins/plugin_type/action_plugins`` +* the directory named for the correct ``plugin_type`` within ``~/.ansible/plugins/`` - for example, ``~/.ansible/plugins/callback`` +* the directory named for the correct ``plugin_type`` within ``/usr/share/ansible/plugins/`` - for example, ``/usr/share/ansible/plugins/action`` Once your plugin file is in one of these locations, Ansible will load it and you can use it in a any local module, task, playbook, or role.