diff --git a/roles/restore_backups/tasks/main.yml b/roles/restore_backups/tasks/main.yml index c1587bd..1f9ebdb 100644 --- a/roles/restore_backups/tasks/main.yml +++ b/roles/restore_backups/tasks/main.yml @@ -97,6 +97,11 @@ # Depends on fetch_backup roles state: restore target: "{{ atl_backup_db_dest }}" + register: result + # managed DBs in cloud providers are not allowing full root access to the DB engine, we can safely ignore the COMMENT ON EXTENSION error + failed_when: + - result.rc != 0 + - '"COMMENT ON EXTENSION" not in result.msg' when: db_created.changed and atl_backup_db_dest is defined