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?
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.
Anil_Degwekar
13 Posts
1093
0
Posted 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