HewlettPackard / ilo-ansible-collection

Ansible Collection and Sample Playbooks for HPE iLO
Apache License 2.0
40 stars 20 forks source link

Set iLo Security to ignore all using Ansible #24

Open wally007 opened 9 months ago

wally007 commented 9 months ago

Hello,

is it possible to disable all iLo Security warnings using ilo_redfish or general_redfish collections ?

I havent found an example role/playbook.

Currently we deploy and setup our server iLo using Ansible but cant import server into Oneview with Security Alerts. We have to manually go and disable/ignore all warnings on each server using iLo web GUI.

donzef commented 9 months ago

I am afraid you'll need to write your own role/playbook to ignore them. In pseudo code, it would be something like:

For each member in {{iloURI}}/redfish/v1/Managers/1/SecurityService/SecurityDashboard ; do PATCH {{iloURI}}/redfish/v1/Managers/1/SecurityService/SecurityDashboard/{{member}} with payload: { "Ignore": true } endfor

wally007 commented 9 months ago

thanks for response.

For now, I disabled them all with ilorest tool but it would be great to have native ansible of doing it - if it's possible to consider this as a feature request for this ansible collection.