--- - name: Ensure stonith is disabled vars: service: "{{ hacluster_services['hacluster-pacemaker'] }}" command: docker exec {{ service.container_name }} crm_attribute --type crm_config --name stonith-enabled --update false run_once: true become: true delegate_to: "{{ groups[service.group][0] }}" - name: Ensure remote node is added vars: pacemaker_service: "{{ hacluster_services['hacluster-pacemaker'] }}" pacemaker_remote_service: "{{ hacluster_services['hacluster-pacemaker-remote'] }}" shell: > docker exec {{ pacemaker_service.container_name }} cibadmin --modify --scope resources -X ' ' become: true delegate_to: "{{ groups[pacemaker_service.group][0] }}" when: - inventory_hostname in groups[pacemaker_remote_service.group] - pacemaker_remote_service.enabled | bool