Note
This module is part of the dellemc.openmanage collection (version 9.12.3).
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 dellemc.openmanage. You need further requirements to be able to use this module, see Requirements for details.
To use it in a playbook, specify: dellemc.openmanage.ome_groups.
New in dellemc.openmanage 3.5.0
The below requirements are needed on the host that executes this module.
Parameter | Comments |
|---|---|
ca_path path added in dellemc.openmanage 5.0.0 | The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation. |
description string | Description for the device group. This is applicable only when state is |
group_id list / elements=integer | ID of the device group to be created, modified, or deleted. If state is absent, multiple IDs can be provided. This option is mutually exclusive with name. |
hostname string / required | OpenManage Enterprise IP address or hostname. |
name list / elements=string | Name of the device group to be created, modified, or deleted. If state is absent, multiple names can be provided. This option is case insensitive. This option is mutually exclusive with group_id. |
new_name string | New name for the existing device group. This is applicable only when state is |
parent_group_id integer | ID of the parent device group under which the device group to be created or modified. This is applicable only when state is This option is mutually exclusive with parent_group_name. |
parent_group_name string | Name of the parent device group under which the device group to be created or modified. This is applicable only when state is
This option is case insensitive. This option is mutually exclusive with parent_group_id. Default: |
password string | OpenManage Enterprise password. If the password is not provided, then the environment variable Example: export OME_PASSWORD=password |
port integer | OpenManage Enterprise HTTPS port. Default: |
state string |
Choices:
|
timeout integer added in dellemc.openmanage 5.0.0 | The socket level timeout in seconds. Default: |
username string | OpenManage Enterprise username. If the username is not provided, then the environment variable Example: export OME_USERNAME=username |
validate_certs boolean added in dellemc.openmanage 5.0.0 | If Configure Prior to collection version Choices:
|
x_auth_token string added in dellemc.openmanage 9.3.0 | Authentication token. If the x_auth_token is not provided, then the environment variable Example: export OME_X_AUTH_TOKEN=x_auth_token |
Note
check_mode.---
- name: Create a new device group
dellemc.openmanage.ome_groups:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
name: "group 1"
description: "Group 1 description"
parent_group_name: "group parent 1"
- name: Modify a device group using the group ID
dellemc.openmanage.ome_groups:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
group_id: 1234
description: "Group description updated"
parent_group_name: "group parent 2"
- name: Delete a device group using the device group name
dellemc.openmanage.ome_groups:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
state: absent
name: "group 1"
- name: Delete multiple device groups using the group IDs
dellemc.openmanage.ome_groups:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
state: absent
group_id:
- 1234
- 5678
Common return values are documented here, the following are the fields unique to this module:
Key | Description |
|---|---|
error_info dictionary | Details of the HTTP Error. Returned: on HTTP error Sample: |
group_ids list / elements=integer | List of the deleted device group IDs. Returned: when state is Sample: |
group_status dictionary | Details of the device group operation status. Returned: success Sample: |
invalid_groups list / elements=string | List of the invalid device group IDs or names. Returned: when state is Sample: |
msg string | Overall status of the device group operation. Returned: always Sample: |
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/dellemc/openmanage/ome_groups_module.html