Add section to aws devel guidelines about module_defaults (#66699)

This commit is contained in:
Jill R 2020-01-23 07:47:51 -07:00 committed by Sloane Hertel
parent 72fbed2c61
commit ac881b0026

View file

@ -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
================= =================