tripleo-ansible/tripleo_ansible/roles/backup_and_restore
Juan Larriba 414c2dae80 Make execution of the backup idempotent
Currently, the playbook stops the services and the pacemaker to perform the backup. If the backup fails for whatever reason, the playbook cannot run again and fails due to the services being down. This patch fixes the issue in two directions. First, by using the block-always ansible feature, we ensure that whenever an error happens, the playbook will restart the pacemaker and the services before exiting.

The second direction is on the execution itself. By controlling certain actions, we ensure that the backup will be succesful not matter what state the services and the pacemaker are when the playbook is ran. This ensures success even in the case an operator stops the ansible execution manually (which will not trigger the 'always' condition).

BZ: #1954818
Change-Id: Id2aff61f219b0c4992f6f0045f1aba2c7d129758
(cherry picked from commit 9a865d1769)
2021-05-31 14:18:19 +00:00
..
defaults Option to remove the self-installed ReaR cron task 2021-02-24 11:17:01 +00:00
meta Add Centos 8 to galaxy_info versions 2020-03-19 14:22:08 +01:00
molecule/default BaR Ceph authenticacion more ansible way 2020-06-23 17:33:49 +02:00
tasks Make execution of the backup idempotent 2021-05-31 14:18:19 +00:00
templates BaR: Keep /etc/exports content 2020-09-28 08:23:38 +02:00
vars BaR doc update + lftp missing package 2020-10-13 15:28:35 +02:00