Debian Codegraph @

ansible_collections/dellemc/openmanage/playbooks/ome/user/ome_user.yml

raw symbols SCIP
1 ---
2 - name: Dell OpenManage Ansible User service.
3 hosts: ome
4 gather_facts: false
5
6 tasks:
7 - name: Create new user.
8 dellemc.openmanage.ome_user:
9 hostname: "{{ hostname }}"
10 username: "{{ username }}"
11 password: "{{ password }}"
12 ca_path: "/path/to/ca_cert.pem"
13 attributes:
14 UserName: "user1"
15 Password: "UserPassword"
16 RoleId: "10"
17 Enabled: true
18 delegate_to: localhost
19
20 - name: Create user with all parameters
21 dellemc.openmanage.ome_user:
22 hostname: "{{ hostname }}"
23 username: "{{ username }}"
24 password: "{{ password }}"
25 ca_path: "/path/to/ca_cert.pem"
26 state: "present"
27 attributes:
28 UserName: "user2"
29 Description: "user2 description"
30 Password: "UserPassword"
31 RoleId: "10"
32 Enabled: true
33 DirectoryServiceId: 0
34 UserTypeId: 1
35 Locked: false
36 Name: "user2"
37 delegate_to: localhost
38
39 - name: Modify existing user
40 dellemc.openmanage.ome_user:
41 hostname: "{{ hostname }}"
42 username: "{{ username }}"
43 password: "{{ password }}"
44 ca_path: "/path/to/ca_cert.pem"
45 state: "present"
46 attributes:
47 UserName: "user3"
48 RoleId: "10"
49 Enabled: true
50 Description: "Modify user Description"
51 delegate_to: localhost
52
53 - name: Delete existing user using id.
54 dellemc.openmanage.ome_user:
55 hostname: "{{ hostname }}"
56 username: "{{ username }}"
57 password: "{{ password }}"
58 ca_path: "/path/to/ca_cert.pem"
59 state: "absent"
60 user_id: 61874
61 delegate_to: localhost
62
63 - name: Delete existing user using name.
64 dellemc.openmanage.ome_user:
65 hostname: "{{ hostname }}"
66 username: "{{ username }}"
67 password: "{{ password }}"
68 ca_path: "/path/to/ca_cert.pem"
69 state: "absent"
70 name: "name"
71 delegate_to: localhost