Add section to aws devel guidelines about module_defaults (#66699)
This commit is contained in:
parent
72fbed2c61
commit
ac881b0026
1 changed files with 12 additions and 0 deletions
|
@ -153,6 +153,18 @@ or:
|
||||||
if not HAS_BOTO3:
|
if not HAS_BOTO3:
|
||||||
module.fail_json(msg='boto3 and botocore are required for this module')
|
module.fail_json(msg='boto3 and botocore are required for this module')
|
||||||
|
|
||||||
|
Supporting Module Defaults
|
||||||
|
--------------------------
|
||||||
|
|
||||||
|
The existing AWS modules support using :ref:`module_defaults <module_defaults>` for common
|
||||||
|
authentication parameters. To do the same for your new module, add an entry for it in
|
||||||
|
``lib/ansible/config/module_defaults.yml``. These entries take the form of:
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
aws_module_name:
|
||||||
|
- aws
|
||||||
|
|
||||||
Connecting to AWS
|
Connecting to AWS
|
||||||
=================
|
=================
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue