diff --git a/evals/roles/enmasse/tasks/backup.yml b/evals/roles/enmasse/tasks/backup.yml index c0481e589..757c59aa4 100644 --- a/evals/roles/enmasse/tasks/backup.yml +++ b/evals/roles/enmasse/tasks/backup.yml @@ -39,17 +39,14 @@ -p 'BACKEND_SECRET_NAME={{ aws_credential_secret_name }}' \ -p 'IMAGE={{ backup_image }}' \ -p 'CRON_SCHEDULE={{ backup_schedule }}' \ - -p 'NAME={{ enmasse_postgres_cronjob_name }}' | oc create -n default -f - - register: postgres_cronjob_create - failed_when: postgres_cronjob_create.stderr != '' and 'AlreadyExists' not in postgres_cronjob_create.stderr + -p 'NAME={{ enmasse_postgres_cronjob_name }}' | oc apply -n default -f - # PV backup - name: Create the enmasse PV CronJob shell: oc process -f {{ backup_resources_location }}/backup-cronjob-template.yaml \ -p 'COMPONENT=enmasse_pv' \ + -p 'BACKEND_SECRET_NAME={{ aws_credential_secret_name }}' \ -p 'IMAGE={{ backup_image }}' \ -p 'CRON_SCHEDULE={{ backup_schedule }}' \ - -p 'NAME={{ enmasse_pv_cronjob_name }}' | oc create -n default -f - - register: pv_cronjob_create - failed_when: pv_cronjob_create.stderr != '' and 'AlreadyExists' not in pv_cronjob_create.stderr + -p 'NAME={{ enmasse_pv_cronjob_name }}' | oc apply -n default -f -