DEV-1058 bugfix backup process

- removed hard coded database server
qa
Sven Ketelsen 3 years ago
parent 0cdd7d09a0
commit 7b1b4e0a82

@ -1,5 +1,14 @@
---
# ****** ** ****** ** ** ** ** ******* #
# /*////** **** **////** /** ** /** /** /**////** #
# /* /** **//** ** // /** ** /** /** /** /** #
# /****** ** //** /** /**** /** /** /******* #
# /*//// ** ********** /** /**/** /** /** /**//// #
# /* /** /**//////** //** ** /**//** /** /** /** #
# /******* /** /** //****** /** //** //******* /** #
# /////// // // ////// // // /////// // #
# creates remote database backup
# - postgres
# - executed on stage specific server: {{ shared_service_postgres_secondary }} (currently: slave)
@ -25,12 +34,7 @@
connection: local
gather_facts: false
pre_tasks:
- name: "Import constraints check"
import_tasks: tasks/constraints_check.yml
tags:
- always
tasks:
# add virtual server to load stage specific variables as context
- name: "Add <{{ stage }}-virtual-host-to-read-groups-vars> to hosts"
add_host:
@ -39,6 +43,17 @@
- "stage_{{ stage }}"
changed_when: False
- hosts: "{{ stage }}-virtual-host-to-read-groups-vars"
serial: "{{ serial_number | default(1) }}"
gather_facts: false
connection: local
pre_tasks:
- name: "Import constraints check"
import_tasks: tasks/constraints_check.yml
tags:
- always
tasks:
- name: "Add {{ database_engine }} servers to hosts if necessary"
add_host:
@ -63,7 +78,7 @@
name: "{{ stage }}-backup-01"
groups:
- "stage_{{ stage }}"
- storage
- "storage"
##############################################################
## Creating remote database backups for created inventory

Loading…
Cancel
Save