Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions docs/getting_started/how-to-use/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ To make this possible, every module accepts the ``query_params`` argument. This
you want to use to search for the object.

Let's start with another example. We will continue to use :ref:`netbox.netbox.netbox_ip_address<ansible_collections.netbox.netbox.netbox_ip_address_module>`. We created **192.168.100.1/24** as a duplicate IP address within
the global IP address space within NetBox. This task should fail saying there was more than result returned.
the global IP address space within NetBox. This task should fail saying there was more than one result returned.

.. code-block:: yaml

Expand Down Expand Up @@ -304,7 +304,9 @@ Hopefully this shines some light on this useful feature to allow you, as the use
Using Module defaults groups
--------------------------------------------

Ansible-core >= 2.12 provide a useful feature called [Module defaults groups](https://docs.ansible.com/ansible/latest/user_guide/playbooks_module_defaults.html#module-defaults-groups) that lets us specify default parameters for a group of modules in a single place. We can use the action_group ``netbox`` that contains all modules from this collection to avoid setting e.g. ``token`` and ``url`` on each task and thus reduce boilerplate code.
Ansible-core >= 2.12 provide a useful feature called `Module defaults groups`_ that lets us specify default parameters for a group of modules in a single place. We can use the action_group ``netbox`` that contains all modules from this collection to avoid setting e.g. ``token`` and ``url`` on each task and thus reduce boilerplate code.

.. _Module defaults groups: https://docs.ansible.com/ansible/latest/user_guide/playbooks_module_defaults.html#module-defaults-groups

.. code-block:: yaml

Expand Down
Loading