-
Notifications
You must be signed in to change notification settings - Fork 1
/
idrac-setattributes-uri.yml
executable file
·41 lines (40 loc) · 1.26 KB
/
idrac-setattributes-uri.yml
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
- name: Set iDRAC manager attributes
uri:
url: "https://{{inventory_hostname}}/redfish/v1/Managers/iDRAC.Embedded.1/Attributes"
user: "{{idrac_user}}"
password: "{{ idrac_password }}"
force_basic_auth: yes
validate_certs: no
use_proxy: no
method: "PATCH"
headers:
Content-Type: "application/json"
Accept: "application/json"
body_format: 'json'
body:
"Attributes":
"GUI.1.SecurityPolicyMessage": "CUSTOM-SECURITY-POLICY-MESSAGE"
"SNMPAlert.1.Destination": "192.168.1.2"
register: result
tags:
- set_manager_attr
- name: Set iDRAC system attributes
uri:
url: "https://{{inventory_hostname}}/redfish/v1/Managers/System.Embedded.1/Attributes"
user: "{{idrac_user}}"
password: "{{ idrac_password }}"
force_basic_auth: yes
validate_certs: no
use_proxy: no
method: "PATCH"
headers:
Content-Type: "application/json"
Accept: "application/json"
body_format: 'json'
body:
"Attributes":
"ServerPwr.1.PSRedPolicy": "A/B Grid Redundant"
"ServerPwr.1.PSRapidOn": "Enabled"
register: result
tags:
- set_system_attr