HewlettPackard / oneview-ansible-collection

Ansible Collection and Sample Playbooks for HPE OneView

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unable to reapply complete server profile

avijitkulkarni opened this issue · comments

Hello,

Greetings !

I am using below code to re-apply server profile, but every time once it runs it executes "Update" task on OneView and only updates missing firmware.
It says "BIOS settings will not be applied"

Could someone please suggest how to initiate a complete re-apply of server profile which includes everything ?

image

We want to run this "Reapply" from ansible so that profile gets re-applied every time regardless of anything.

  • name: apply server profile
    hpe.oneview.oneview_server_profile:
    hostname: "{{ hostname }}"
    auth_login_domain: "{{domain}}"
    username: "{{ user }}"
    password: "{{ password }}"
    sessionID: "{{ session }}"
    data:
    name: "{{ spname }}"
    state: "reapply"
    delegate_to: localhost
    register: apply_server_profile

ansible core --> 2.13.6
hpe.oneview --> 8.4.0

Hi @avijitkulkarni thanks for your query. Currently we do not have the provision for re-apply state in our Ansible SDK. We have added this into our backlog and will take it as per our priority.

Hello @akshith-gunasheelan,

Thank you so much for the response.

Could you please confirm if below steps will work:

  1. Remove server profile assignment.
  2. Delete server profile.
  3. Create new server profile(with same name) from server profile template.
  4. Associate server hardware to the newly created server profile --> Will this option trigger apply server profile task and eventually applies all settings ?

Thank you.

Hi @avijitkulkarni , these steps will apply all settings , Thanks.

Hi @avijitkulkarni , please let us know if we are good to close this issue now.

Hello @akshith-gunasheelan,

Thank you so much for helping.
I was able to apply all settings after deleting and re-creating the server profile.