Debian Codegraph @

ansible_collections/dellemc/openmanage/playbooks/ome/ome_groups.yml

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