mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Port downstream installer changes
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
register: result
|
||||
until: result.stdout == "Running"
|
||||
retries: 60
|
||||
delay: 10
|
||||
|
||||
- name: Create directory for backup
|
||||
file:
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
kubectl_or_oc: "{{ openshift_oc_bin if openshift_oc_bin is defined else 'kubectl' }}"
|
||||
|
||||
- set_fact:
|
||||
deployment_object: "{{ 'dc' if openshift_host is defined else 'deployment' }}"
|
||||
deployment_object: "sts"
|
||||
|
||||
- name: Record deployment size
|
||||
shell: |
|
||||
@@ -156,6 +156,7 @@
|
||||
register: result
|
||||
until: result.stdout == "Running"
|
||||
retries: 60
|
||||
delay: 10
|
||||
|
||||
- name: Migrate database
|
||||
shell: |
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
extra_opts: [--strip-components=1]
|
||||
|
||||
- set_fact:
|
||||
deployment_object: "{{ 'dc' if openshift_host is defined else 'deployment' }}"
|
||||
deployment_object: "sts"
|
||||
|
||||
- name: Record deployment size
|
||||
shell: |
|
||||
@@ -70,6 +70,7 @@
|
||||
register: result
|
||||
until: result.stdout == "Running"
|
||||
retries: 60
|
||||
delay: 10
|
||||
|
||||
- name: Temporarily grant createdb role
|
||||
shell: |
|
||||
@@ -79,7 +80,7 @@
|
||||
--host={{ pg_hostname | default('postgresql') }} \
|
||||
--port={{ pg_port | default('5432') }} \
|
||||
--username=postgres \
|
||||
--dbname=template1 -c 'ALTER USER tower CREATEDB;'"
|
||||
--dbname=template1 -c 'ALTER USER {{ pg_username }} CREATEDB;'"
|
||||
no_log: true
|
||||
when: pg_hostname is not defined or pg_hostname == ''
|
||||
|
||||
@@ -102,7 +103,7 @@
|
||||
--host={{ pg_hostname | default('postgresql') }} \
|
||||
--port={{ pg_port | default('5432') }} \
|
||||
--username=postgres \
|
||||
--dbname=template1 -c 'ALTER USER tower NOCREATEDB;'"
|
||||
--dbname=template1 -c 'ALTER USER {{ pg_username }} NOCREATEDB;'"
|
||||
no_log: true
|
||||
when: pg_hostname is not defined or pg_hostname == ''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user