blob: 027a53d09f5352695679057e8829549c21fdbbfb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
---
- hosts: ome
connection: local
name: Dell OpenManage Ansible Group configuration.
gather_facts: False
collections:
- dellemc.openmanage
tasks:
- name: Create a new device group
ome_groups:
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "{{ password }}"
ca_path: "/path/to/ca_cert.pem"
name: "group 1"
description: "Group 1 description"
parent_group_name: "group parent 1"
tags:
- create_group
- name: Modify a device group using the group ID
ome_groups:
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "{{ password }}"
ca_path: "/path/to/ca_cert.pem"
group_id: 1234
description: "Group description updated"
parent_group_name: "group parent 2"
tags:
- modify_group
- name: Delete a device group using the device group name
ome_groups:
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "{{ password }}"
ca_path: "/path/to/ca_cert.pem"
state: absent
name: "group 1"
tags:
- delete_name
- name: Delete multiple device groups using the group IDs
ome_groups:
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "{{ password }}"
ca_path: "/path/to/ca_cert.pem"
state: absent
group_id:
- 1234
- 5678
tags:
- delete_ids
|