You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.4 KiB
YAML
45 lines
1.4 KiB
YAML
---
|
|
#############################################################
|
|
# Creating inventory dynamically for given parameters
|
|
#############################################################
|
|
|
|
- import_playbook: pmci-inventory-database.yml
|
|
|
|
#############################################################
|
|
# Restoring databases for created inventory
|
|
#############################################################
|
|
|
|
- hosts: "pmci_database_selector"
|
|
serial: "{{ serial_number | default(1) }}"
|
|
remote_user: root
|
|
vars:
|
|
database_backup_state: restore
|
|
custom_backup_name: "backup" # legacy paramater, backwards compatibility
|
|
|
|
pre_tasks:
|
|
- name: "Setting default variables pre-tasks"
|
|
import_tasks: tasks/pmci_set_default_variables.yml
|
|
become: false
|
|
tags:
|
|
- always
|
|
|
|
roles:
|
|
- role: connect_postgres
|
|
when: "'connect' in group_names"
|
|
|
|
#############################################################
|
|
# Sending smardigo management message to process
|
|
#############################################################
|
|
|
|
- hosts: "{{ stage }}-virtual-host-to-read-groups-vars"
|
|
serial: "{{ serial_number | default(1) }}"
|
|
gather_facts: false
|
|
connection: local
|
|
run_once: true
|
|
vars:
|
|
connect_jwt_username: "{{ management_admin_username }}"
|
|
|
|
tasks:
|
|
- name: "Sending smardigo management message to <{{ shared_service_url_management }}>"
|
|
include_tasks: tasks/smardigo_management_message.yml
|