Debian Codegraph @

ansible_collections/dellemc/openmanage/playbooks/idrac/idrac_attributes.yml

raw symbols SCIP
1 ---
2 - name: Dell OpenManage Ansible iDRAC Certificates management.
3 hosts: idrac
4 gather_facts: false
5
6 tasks:
7 - name: Update iDRAC attributes
8 dellemc.openmanage.idrac_attributes:
9 idrac_ip: "{{ idrac_ip }}"
10 idrac_user: "{{ idrac_user }}"
11 idrac_password: "{{ idrac_password }}"
12 ca_path: "/path/to/ca_cert.pem"
13 idrac_attributes:
14 SNMP.1.AgentCommunity: Enabled
15 tags: idrac
16 delegate_to: localhost
17
18 - name: Update System attributes
19 dellemc.openmanage.idrac_attributes:
20 idrac_ip: "{{ idrac_ip }}"
21 idrac_user: "{{ idrac_user }}"
22 idrac_password: "{{ idrac_password }}"
23 ca_path: "/path/to/ca_cert.pem"
24 system_attributes:
25 ThermalSettings.1.ThermalProfile: Sound Cap
26 tags: system
27 delegate_to: localhost
28
29 - name: Update Lifecycle Controller attributes
30 dellemc.openmanage.idrac_attributes:
31 idrac_ip: "{{ idrac_ip }}"
32 idrac_user: "{{ idrac_user }}"
33 idrac_password: "{{ idrac_password }}"
34 ca_path: "/path/to/ca_cert.pem"
35 lifecycle_controller_attributes:
36 LCAttributes.1.AutoUpdate: Enabled
37 tags: lc
38 delegate_to: localhost
39
40 - name: Configure the iDRAC attributes for email alert settings.
41 dellemc.openmanage.idrac_attributes:
42 idrac_ip: "{{ idrac_ip }}"
43 idrac_user: "{{ idrac_user }}"
44 idrac_password: "{{ idrac_password }}"
45 ca_path: "/path/to/ca_cert.pem"
46 idrac_attributes:
47 EmailAlert.1.CustomMsg: Display Message
48 EmailAlert.1.Enable: Enabled
49 EmailAlert.1.Address: [email protected]
50 tags: email-alerts
51 delegate_to: localhost
52
53 - name: Configure the iDRAC attributes for SNMP alert settings.
54 dellemc.openmanage.idrac_attributes:
55 idrac_ip: "{{ idrac_ip }}"
56 idrac_user: "{{ idrac_user }}"
57 idrac_password: "{{ idrac_password }}"
58 ca_path: "/path/to/ca_cert.pem"
59 idrac_attributes:
60 SNMPAlert.1.Destination: 192.168.0.2
61 SNMPAlert.1.State: Enabled
62 SNMPAlert.1.SNMPv3Username: username
63 tags: snmp-alerts
64 delegate_to: localhost
65
66 - name: Configure the iDRAC attributes for SMTP alert settings.
67 dellemc.openmanage.idrac_attributes:
68 idrac_ip: "{{ idrac_ip }}"
69 idrac_user: "{{ idrac_user }}"
70 idrac_password: "{{ idrac_password }}"
71 ca_path: "/path/to/ca_cert.pem"
72 idrac_attributes:
73 RemoteHosts.1.SMTPServerIPAddress: 192.168.0.3
74 RemoteHosts.1.SMTPAuthentication: Enabled
75 RemoteHosts.1.SMTPPort: 25
76 RemoteHosts.1.SMTPUserName: username
77 RemoteHosts.1.SMTPPassword: password
78 tags: smtp-alerts
79 delegate_to: localhost
80
81 - name: Configure the iDRAC attributes for webserver settings.
82 dellemc.openmanage.idrac_attributes:
83 idrac_ip: "{{ idrac_ip }}"
84 idrac_user: "{{ idrac_user }}"
85 idrac_password: "{{ idrac_password }}"
86 ca_path: "/path/to/ca_cert.pem"
87 idrac_attributes:
88 WebServer.1.SSLEncryptionBitLength: 128-Bit or higher
89 WebServer.1.TLSProtocol: TLS 1.1 and Higher
90 tags: webserver-settings
91 delegate_to: localhost
92
93 - name: Configure the iDRAC attributes for SNMP settings.
94 dellemc.openmanage.idrac_attributes:
95 idrac_ip: "{{ idrac_ip }}"
96 idrac_user: "{{ idrac_user }}"
97 idrac_password: "{{ idrac_password }}"
98 ca_path: "/path/to/ca_cert.pem"
99 idrac_attributes:
100 SNMP.1.SNMPProtocol: All
101 SNMP.1.AgentEnable: Enabled
102 SNMP.1.TrapFormat: SNMPv1
103 SNMP.1.AlertPort: 162
104 SNMP.1.AgentCommunity: public
105 tags: snmp-settings
106 delegate_to: localhost
107
108 - name: Configure the iDRAC LC attributes for collecting system inventory.
109 dellemc.openmanage.idrac_attributes:
110 idrac_ip: "{{ idrac_ip }}"
111 idrac_user: "{{ idrac_user }}"
112 idrac_password: "{{ idrac_password }}"
113 ca_path: "/path/to/ca_cert.pem"
114 lifecycle_controller_attributes:
115 LCAttributes.1.CollectSystemInventoryOnRestart: Enabled
116 tags: collect-inventory
117 delegate_to: localhost
118
119 - name: Configure the iDRAC system attributes for LCD settings.
120 dellemc.openmanage.idrac_attributes:
121 idrac_ip: "192.168.0.1"
122 idrac_user: "user_name"
123 idrac_password: "user_password"
124 ca_path: "/path/to/ca_cert.pem"
125 system_attributes:
126 LCD.1.Configuration: Service Tag
127 LCD.1.vConsoleIndication: Enabled
128 LCD.1.FrontPanelLocking: Full-Access
129 LCD.1.UserDefinedString: custom lcd string
130 tags: lcd-config
131 delegate_to: localhost
132
133 - name: Configure the iDRAC attributes for Timezone settings.
134 dellemc.openmanage.idrac_attributes:
135 idrac_ip: "192.168.0.1"
136 idrac_user: "user_name"
137 idrac_password: "user_password"
138 ca_path: "/path/to/ca_cert.pem"
139 idrac_attributes:
140 Time.1.Timezone: CST6CDT
141 NTPConfigGroup.1.NTPEnable: Enabled
142 NTPConfigGroup.1.NTP1: 192.168.0.5
143 NTPConfigGroup.1.NTP2: 192.168.0.6
144 NTPConfigGroup.1.NTP3: 192.168.0.7
145 tags: timezone-settings
146 delegate_to: localhost
147
148 - name: Configure all attributes
149 dellemc.openmanage.idrac_attributes:
150 idrac_ip: "192.168.0.1"
151 idrac_user: "user_name"
152 idrac_password: "user_password"
153 ca_path: "/path/to/ca_cert.pem"
154 idrac_attributes:
155 SNMP.1.AgentCommunity: test
156 SNMP.1.AgentEnable: Enabled
157 SNMP.1.DiscoveryPort: 161
158 system_attributes:
159 ServerOS.1.HostName: demohostname
160 lifecycle_controller_attributes:
161 LCAttributes.1.AutoUpdate: Disabled
162 tags: all-attributes
163 delegate_to: localhost