Start a Conversation

Solved!

Go to Solution

1202

April 21st, 2021 09:00

volume ID in volume name ansible for powermax

I am using ansible for powermax and was wondering if anyone has any suggestion on a small issue I am facing.

We append device ID to our volume names on powermax and I can do this in ansible (create volume with some name and then rename to append the device ID). The problem I have is that the playbook is no longer idempotent.

Is there a way for me to create volumes with device ID in the name and still be idempotent?

April 22nd, 2021 05:00

Hi Shridhar,

When you rename any object in Ansible, then the tasks prior to the rename can not be idempotent (because idempotency requires the name to remain the same).

So that behavior is quite expected and will happen with any Ansible module, not just PowerMax.

Any further actions that you take on the volume with your new name (which includes the device ID) will be idempotent -- as long as you do not change the name any more.

Regards

Anil 

April 27th, 2021 05:00

Thank you I will work my logic accordingly

No Events found!

Top