netapp.storagegrid.na_sg_reset_node_to_pge module – NetApp StorageGRID PGE Primary admin node reset.

Note

This module is part of the netapp.storagegrid collection (version 21.17.0).

You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install netapp.storagegrid.

To use it in a playbook, specify: netapp.storagegrid.na_sg_reset_node_to_pge.

New in netapp.storagegrid 21.17.0

Synopsis

  • Reset a StorageGRID Pre-Grid Environment (PGE) appliance by SSHing to the primary admin node (as the admin user by default) and running sgareinstall.

Parameters

Parameter

Comments

api_url

string / required

The url to the StorageGRID Node PGE REST API.

ssh_password

string / required

Password to use when SSHing to the appliance.

validate_certs

boolean

Should https certificates be validated?

Choices:

  • false

  • true ← (default)

Notes

Note

  • The modules prefixed with na_sg_pge are built to manage NetApp StorageGRID node Pre-Grid Environment (PGE) configuration.

Examples

- name: Reset StorageGRID PGE appliance
  netapp.storagegrid.na_sg_reset_node_to_pge:
    api_url: "https://<storagegrid-node-pge-endpoint>"
    validate_certs: false
    ssh_password: "{{ sg_ssh_password }}"

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

resp

dictionary

Result of the reset command.

Returned: success

Sample: {"command": "sudo -S -p '' bash -lc 'yes | sgareinstall'", "exit_status": 255, "host": "10.10.10.10", "rebooted": true, "stderr": "", "stdout": ""}

Authors

  • NetApp Ansible Team (@vinaykus)