mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
Fix linter
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
skip_list:
|
skip_list:
|
||||||
- '306'
|
- '306'
|
||||||
- '602'
|
- '602'
|
||||||
|
|||||||
@@ -69,8 +69,8 @@
|
|||||||
|
|
||||||
- name: Look up details for this deployment
|
- name: Look up details for this deployment
|
||||||
k8s_info:
|
k8s_info:
|
||||||
api_version: 'v1beta1' # TODO: How to parameterize this?
|
api_version: 'v1beta1' # TODO: How to parameterize this?
|
||||||
kind: "AWX" # TODO: How to parameterize this?
|
kind: "AWX" # TODO: How to parameterize this?
|
||||||
name: "{{ meta.name }}"
|
name: "{{ meta.name }}"
|
||||||
namespace: "{{ meta.namespace }}"
|
namespace: "{{ meta.namespace }}"
|
||||||
register: this_awx
|
register: this_awx
|
||||||
|
|||||||
@@ -60,8 +60,12 @@
|
|||||||
community.kubernetes.k8s_exec:
|
community.kubernetes.k8s_exec:
|
||||||
namespace: "{{ meta.namespace }}"
|
namespace: "{{ meta.namespace }}"
|
||||||
pod: "{{ postgres_pod_name }}"
|
pod: "{{ postgres_pod_name }}"
|
||||||
command: >-
|
command: |
|
||||||
bash -c "set -o pipefail; PGPASSWORD={{ tower_old_postgres_pass }} {{ pgdump }} | PGPASSWORD={{ awx_postgres_pass }} {{ psql_restore }} && echo 'Successful'"
|
bash -c """
|
||||||
|
set -e -o pipefail
|
||||||
|
PGPASSWORD={{ tower_old_postgres_pass }} {{ pgdump }} | PGPASSWORD={{ awx_postgres_pass }} {{ psql_restore }}
|
||||||
|
echo 'Successful'
|
||||||
|
"""
|
||||||
register: data_migration
|
register: data_migration
|
||||||
failed_when: "'Successful' not in data_migration.stdout"
|
failed_when: "'Successful' not in data_migration.stdout"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user