NIOS Service
Use the nios_restartservices
module to restart Grid services. If you invoke this module without specifying any parameter, it restarts all services on the Default restart groups in NIOS.
The following table describes the parameters you can define in the nios_restartservices
module:
Parameter | Required/Optional | Description |
---|---|---|
| Optional | Specifies the list of the service restart groups to restart the services. |
| Optional | Specifies the list of the Grid members to restart. |
| Optional | Specifies the restart method to use when restarting services at the Grid level. You can select |
| Optional | Controls whether services are restarted unconditionally or when needed. The default value is |
| Optional | Specifies the list of services to which the restart is applicable. |
| Required | Defines the details of the connection:
For information on additional fields you can define, see the list of subparameters in the NIOS Modules for Ansible Collections topic. |
| Required | The |
Examples
name: Restart all grid services if needed.
infoblox.nios_modules.nios_restartservices:
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
connection: local
name: Restart DNS service if needed.
infoblox.nios_modules.nios_restartservices:
services:
- DNS
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
connection: local