Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - name: Dell OpenManage Ansible iDRAC Session Management.
3 hosts: ome
4 gather_facts: false
5
6 tasks:
7 - name: Create a session
8 dellemc.openmanage.ome_session:
9 hostname: 198.162.0.1
10 username: username
11 password: password
12 state: present
13 delegate_to: localhost
14
15 - name: Delete a session
16 dellemc.openmanage.ome_session:
17 hostname: 198.162.0.1
18 state: absent
19 x_auth_token: aed4aa802b748d2f3b31deec00a6b28a
20 session_id: 4b48e9ab-809e-4087-b7c4-201a16e0143d
21 delegate_to: localhost
22
23 - name: Create a session and execute other modules
24 block:
25 - name: Create a session
26 dellemc.openmanage.ome_session:
27 hostname: 198.162.0.1
28 username: username
29 password: password
30 ca_path: "/path/to/ca_cert.pem"
31 state: present
32 register: authdata
33
34 - name: Call ome_user_info module
35 dellemc.openmanage.ome_user_info:
36 hostname: 198.162.0.1
37 ca_path: "/path/to/ca_cert.pem"
38 x_auth_token: "{{ authdata.x_auth_token }}"
39
40 - name: Call ome_network_vlan_info module
41 dellemc.openmanage.ome_network_vlan_info:
42 hostname: 198.162.0.1
43 ca_path: "/path/to/ca_cert.pem"
44 x_auth_token: "{{ authdata.x_auth_token }}"
45 always:
46 - name: Destroy a session
47 dellemc.openmanage.ome_session:
48 hostname: 198.162.0.1
49 ca_path: "/path/to/ca_cert.pem"
50 state: absent
51 x_auth_token: "{{ authData.x_auth_token }}"
52 session_id: "{{ authData.session_data.Id }}"