mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
ITOPSENG-101 fix merge conflict
This commit is contained in:
@@ -34,7 +34,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 1
|
- ./bin/run-tests-in-batches --batch 1
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 2
|
name: Molecule Test Batch - 2
|
||||||
services:
|
services:
|
||||||
@@ -42,7 +42,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 2
|
- ./bin/run-tests-in-batches --batch 2
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 3
|
name: Molecule Test Batch - 3
|
||||||
services:
|
services:
|
||||||
@@ -50,7 +50,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 3
|
- ./bin/run-tests-in-batches --batch 3
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 4
|
name: Molecule Test Batch - 4
|
||||||
services:
|
services:
|
||||||
@@ -58,7 +58,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 4
|
- ./bin/run-tests-in-batches --batch 4
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 5
|
name: Molecule Test Batch - 5
|
||||||
services:
|
services:
|
||||||
@@ -66,7 +66,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 5
|
- ./bin/run-tests-in-batches --batch 5
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 6
|
name: Molecule Test Batch - 6
|
||||||
services:
|
services:
|
||||||
@@ -74,7 +74,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 6
|
- ./bin/run-tests-in-batches --batch 6
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 7
|
name: Molecule Test Batch - 7
|
||||||
services:
|
services:
|
||||||
@@ -82,7 +82,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 7
|
- ./bin/run-tests-in-batches --batch 7
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 8
|
name: Molecule Test Batch - 8
|
||||||
services:
|
services:
|
||||||
@@ -90,7 +90,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 8
|
- ./bin/run-tests-in-batches --batch 8
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 9
|
name: Molecule Test Batch - 9
|
||||||
services:
|
services:
|
||||||
@@ -98,7 +98,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 9
|
- ./bin/run-tests-in-batches --batch 9
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 10
|
name: Molecule Test Batch - 10
|
||||||
services:
|
services:
|
||||||
@@ -106,7 +106,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 10
|
- ./bin/run-tests-in-batches --batch 10
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 11
|
name: Molecule Test Batch - 11
|
||||||
services:
|
services:
|
||||||
@@ -114,7 +114,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 11
|
- ./bin/run-tests-in-batches --batch 11
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 12
|
name: Molecule Test Batch - 12
|
||||||
services:
|
services:
|
||||||
@@ -122,7 +122,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 12
|
- ./bin/run-tests-in-batches --batch 12
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 13
|
name: Molecule Test Batch - 13
|
||||||
services:
|
services:
|
||||||
@@ -130,7 +130,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 13
|
- ./bin/run-tests-in-batches --batch 13
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 14
|
name: Molecule Test Batch - 14
|
||||||
services:
|
services:
|
||||||
@@ -138,7 +138,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 14
|
- ./bin/run-tests-in-batches --batch 14
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 15
|
name: Molecule Test Batch - 15
|
||||||
services:
|
services:
|
||||||
@@ -146,7 +146,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 15
|
- ./bin/run-tests-in-batches --batch 15
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 16
|
name: Molecule Test Batch - 16
|
||||||
services:
|
services:
|
||||||
@@ -154,7 +154,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 16
|
- ./bin/run-tests-in-batches --batch 16
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 17
|
name: Molecule Test Batch - 17
|
||||||
services:
|
services:
|
||||||
@@ -162,7 +162,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 17
|
- ./bin/run-tests-in-batches --batch 17
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 18
|
name: Molecule Test Batch - 18
|
||||||
services:
|
services:
|
||||||
@@ -170,7 +170,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 18
|
- ./bin/run-tests-in-batches --batch 18
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 19
|
name: Molecule Test Batch - 19
|
||||||
services:
|
services:
|
||||||
@@ -178,7 +178,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 19
|
- ./bin/run-tests-in-batches --batch 19
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 20
|
name: Molecule Test Batch - 20
|
||||||
services:
|
services:
|
||||||
@@ -186,7 +186,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 20
|
- ./bin/run-tests-in-batches --batch 20
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 21
|
name: Molecule Test Batch - 21
|
||||||
services:
|
services:
|
||||||
@@ -194,7 +194,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 21
|
- ./bin/run-tests-in-batches --batch 21
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 22
|
name: Molecule Test Batch - 22
|
||||||
services:
|
services:
|
||||||
@@ -202,7 +202,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 22
|
- ./bin/run-tests-in-batches --batch 22
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 23
|
name: Molecule Test Batch - 23
|
||||||
services:
|
services:
|
||||||
@@ -210,7 +210,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 23
|
- ./bin/run-tests-in-batches --batch 23
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 24
|
name: Molecule Test Batch - 24
|
||||||
services:
|
services:
|
||||||
@@ -218,7 +218,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 24
|
- ./bin/run-tests-in-batches --batch 24
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 25
|
name: Molecule Test Batch - 25
|
||||||
services:
|
services:
|
||||||
@@ -226,7 +226,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 25
|
- ./bin/run-tests-in-batches --batch 25
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 26
|
name: Molecule Test Batch - 26
|
||||||
services:
|
services:
|
||||||
@@ -234,7 +234,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 26
|
- ./bin/run-tests-in-batches --batch 26
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 27
|
name: Molecule Test Batch - 27
|
||||||
services:
|
services:
|
||||||
@@ -242,7 +242,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 27
|
- ./bin/run-tests-in-batches --batch 27
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 28
|
name: Molecule Test Batch - 28
|
||||||
services:
|
services:
|
||||||
@@ -250,7 +250,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 28
|
- ./bin/run-tests-in-batches --batch 28
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 29
|
name: Molecule Test Batch - 29
|
||||||
services:
|
services:
|
||||||
@@ -258,7 +258,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 29
|
- ./bin/run-tests-in-batches --batch 29
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 30
|
name: Molecule Test Batch - 30
|
||||||
services:
|
services:
|
||||||
@@ -266,7 +266,7 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 30
|
- ./bin/run-tests-in-batches --batch 30
|
||||||
|
|
||||||
- step:
|
- step:
|
||||||
name: Molecule Test Batch - 31
|
name: Molecule Test Batch - 31
|
||||||
services:
|
services:
|
||||||
@@ -274,5 +274,4 @@ pipelines:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && ./bin/install-ansible --dev
|
- apt-get update && ./bin/install-ansible --dev
|
||||||
- ./bin/run-tests-in-batches --batch 31
|
- ./bin/run-tests-in-batches --batch 31
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
14
roles/restore_backups/molecule/restore/Dockerfile.j2
Normal file
14
roles/restore_backups/molecule/restore/Dockerfile.j2
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# Molecule managed
|
||||||
|
|
||||||
|
{% if item.registry is defined %}
|
||||||
|
FROM {{ item.registry.url }}/{{ item.image }}
|
||||||
|
{% else %}
|
||||||
|
FROM {{ item.image }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python sudo bash ca-certificates && apt-get clean; \
|
||||||
|
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python sudo python-devel python*-dnf bash && dnf clean all; \
|
||||||
|
elif [ $(command -v yum) ]; then yum makecache fast && yum install -y python sudo yum-plugin-ovl bash && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \
|
||||||
|
elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml && zypper clean -a; \
|
||||||
|
elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; \
|
||||||
|
elif [ $(command -v xbps-install) ]; then xbps-install -Syu && xbps-install -y python sudo bash ca-certificates && xbps-remove -O; fi
|
||||||
30
roles/restore_backups/molecule/restore/molecule.yml
Normal file
30
roles/restore_backups/molecule/restore/molecule.yml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
---
|
||||||
|
dependency:
|
||||||
|
name: galaxy
|
||||||
|
driver:
|
||||||
|
name: docker
|
||||||
|
lint:
|
||||||
|
name: yamllint
|
||||||
|
platforms:
|
||||||
|
- name: amazon_linux2
|
||||||
|
image: amazonlinux:2
|
||||||
|
groups:
|
||||||
|
- aws_node_local
|
||||||
|
ulimits:
|
||||||
|
- nofile:262144:262144
|
||||||
|
provisioner:
|
||||||
|
name: ansible
|
||||||
|
options:
|
||||||
|
skip-tags: runtime_pkg
|
||||||
|
lint:
|
||||||
|
name: ansible-lint
|
||||||
|
options:
|
||||||
|
x: ["701"]
|
||||||
|
inventory:
|
||||||
|
links:
|
||||||
|
group_vars: ../../../../group_vars/
|
||||||
|
verifier:
|
||||||
|
name: testinfra
|
||||||
|
lint:
|
||||||
|
name: flake8
|
||||||
|
enabled: false
|
||||||
11
roles/restore_backups/molecule/restore/playbook.yml
Normal file
11
roles/restore_backups/molecule/restore/playbook.yml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
- name: Converge
|
||||||
|
hosts: all
|
||||||
|
vars:
|
||||||
|
atl_backup_manifest_url: 's3://dcd-slingshot-test/dummy_manifest.json'
|
||||||
|
atl_product_user: 'jira'
|
||||||
|
atl_backup_home_restore_canary_path: '/tmp/canary.tmp'
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Install distro-specific restore support packages
|
||||||
|
include_tasks: "../../tasks/{{ ansible_distribution|lower }}.yml"
|
||||||
20
roles/restore_backups/molecule/restore/tests/test_default.py
Normal file
20
roles/restore_backups/molecule/restore/tests/test_default.py
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
import os
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
import testinfra.utils.ansible_runner
|
||||||
|
|
||||||
|
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
||||||
|
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize('exe', [
|
||||||
|
'/usr/bin/pg_dump',
|
||||||
|
'/usr/bin/pg_restore',
|
||||||
|
'/usr/bin/psql'
|
||||||
|
])
|
||||||
|
def test_postgresql_amazon_linux_extras_exes(host, exe):
|
||||||
|
assert host.file(exe).exists
|
||||||
|
|
||||||
|
def test_postgresql_version(host):
|
||||||
|
pg_dump_version_output = host.check_output('pg_dump --version')
|
||||||
|
assert '(PostgreSQL) 9.6' in pg_dump_version_output
|
||||||
@@ -5,3 +5,5 @@
|
|||||||
command: amazon-linux-extras install -y "postgresql{{ postgres_version }}"
|
command: amazon-linux-extras install -y "postgresql{{ postgres_version }}"
|
||||||
args:
|
args:
|
||||||
creates: /usr/bin/psql
|
creates: /usr/bin/psql
|
||||||
|
environment:
|
||||||
|
PYTHON: /bin/python
|
||||||
|
|||||||
@@ -56,8 +56,8 @@
|
|||||||
# FIXME: The manifest format is still undecided so the
|
# FIXME: The manifest format is still undecided so the
|
||||||
# following usages will need to be updated once it settles..
|
# following usages will need to be updated once it settles..
|
||||||
atl_backup_id: "{{ atl_backup_manifest.name }}"
|
atl_backup_id: "{{ atl_backup_manifest.name }}"
|
||||||
atl_backup_db_dest: "{{ atl_installer_temp }}/{{ atl_backup_manifest.artifacts.db.location.value | basename }}"
|
atl_backup_db_dest: "{{ atl_installer_temp }}/{{ atl_backup_manifest.artifacts.db.location.location | basename }}"
|
||||||
atl_backup_home_dest: "{{ atl_installer_temp }}/{{ atl_backup_manifest.artifacts.sharedHome.location.value | basename }}"
|
atl_backup_home_dest: "{{ atl_installer_temp }}/{{ atl_backup_manifest.artifacts.sharedHome.location.location | basename }}"
|
||||||
|
|
||||||
# FIXME: Here we fetch the backups. However we may wish to stream
|
# FIXME: Here we fetch the backups. However we may wish to stream
|
||||||
# these directly from S3 to the target DB/FS to avoid requiring
|
# these directly from S3 to the target DB/FS to avoid requiring
|
||||||
@@ -66,16 +66,16 @@
|
|||||||
aws_s3:
|
aws_s3:
|
||||||
mode: get
|
mode: get
|
||||||
overwrite: different
|
overwrite: different
|
||||||
bucket: "{{ atl_backup_manifest.artifacts.db.location.value | urlsplit('hostname') }}"
|
bucket: "{{ atl_backup_manifest.artifacts.db.location.location | urlsplit('hostname') }}"
|
||||||
object: "{{ atl_backup_manifest.artifacts.db.location.value | urlsplit('path') }}"
|
object: "{{ atl_backup_manifest.artifacts.db.location.location | urlsplit('path') }}"
|
||||||
dest: "{{ atl_backup_db_dest }}"
|
dest: "{{ atl_backup_db_dest }}"
|
||||||
|
|
||||||
- name: Fetch Home backup from S3
|
- name: Fetch Home backup from S3
|
||||||
aws_s3:
|
aws_s3:
|
||||||
mode: get
|
mode: get
|
||||||
overwrite: different
|
overwrite: different
|
||||||
bucket: "{{ atl_backup_manifest.artifacts.sharedHome.location.value | urlsplit('hostname') }}"
|
bucket: "{{ atl_backup_manifest.artifacts.sharedHome.location.location | urlsplit('hostname') }}"
|
||||||
object: "{{ atl_backup_manifest.artifacts.sharedHome.location.value | urlsplit('path') }}"
|
object: "{{ atl_backup_manifest.artifacts.sharedHome.location.location | urlsplit('path') }}"
|
||||||
dest: "{{ atl_backup_home_dest }}"
|
dest: "{{ atl_backup_home_dest }}"
|
||||||
|
|
||||||
- name: Install distro-specific restore support packages
|
- name: Install distro-specific restore support packages
|
||||||
@@ -97,6 +97,11 @@
|
|||||||
# Depends on fetch_backup roles
|
# Depends on fetch_backup roles
|
||||||
state: restore
|
state: restore
|
||||||
target: "{{ atl_backup_db_dest }}"
|
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
|
when: db_created.changed and atl_backup_db_dest is defined
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user