Update or Replace a Module

Playbooks provide the ability to update or replace a module in multiple playbooks. Following are the options provided:

  • Module (Replace With)
  • Update (Module Definition)
  • Update to this in other playbooks (Module Definition)
  • Replace with this in other playbooks (Module Definition)

Module

Playbooks allow you to replace a module with another module in multiple playbooks by remapping the parameters if all parameters are the same.

To replace a module:

  1. Go to My Library > Playbooks.
  2. Open a playbook in Advanced Mode.
  3. To the existing module in the playbook, click + on the Module node > Replace With > Module.

The Automation Library opens up.

Search or browse for the module to be replaced. Click + on the module to enter the module parameters.

Click Replace. A Successfully replaced module message appears on the top-right corner.

Update

Playbooks allow module update to the latest available version. In the module node, you can either click on the arrow indicating to update to the latest version or click on the + > Module Definition > Update.

The Module Parameters form opens up to update the version. Enter the details for the new version and click Save.

A Module Updated Successfully message appears on the top-right corner.

Update to this in Other Playbooks

This option allows you to update the module in other playbooks. This option is useful when the user has multiple playbooks and has the same module in all the playbooks, the user can update the module to a higher version at once by selecting this option.

  1. Click + on the module > Module Definition > Update to this other playbooks.

A confirmation window opens up to upgrade the module in other playbooks.

Select the required instances or select all instances and click Update.

Replace with this in Other Playbooks

This option allows you to replace the module in other playbooks. This option is useful if the user wants to replace the current module in all other playbooks.

Click + on the module > Module Definition > Replace with this in other playbooks.

A pop-up window opens up to choose the module to be replaced.

Select the module from the drop-down list and click Next.
The drop-down displays a list of modules that are on the Automations > Modules page.

A confirmation window opens up to replace the selected module and its associated instances with the current module.

Select the required instances or select all instances and click Replace.

After you click Replace, a successful message appears that the modules are replaced.


Did this page help you?