I'm trying to create an Ansible Pacemaker role that creates the CIB configuration and then pushes it. The problem is: Pacemaker refuses to destroy a resource if it is not stopped.
I'm trying then to figure out how to properly stop all the resources before restarting them (or destroy them, or shutdown the cluster, doesn't matter if the new CIB is pushed immediately after).
The best would have been to force destroy unused resources, but I can't figure out how crmsh
can perform that.
Have you an idea ? Thanks!