mirror of
https://github.com/ansible/awx.git
synced 2026-02-03 10:38:15 -03:30
Don’t hardcode Helm PostgreSQL deployment name
This commit is contained in:
@@ -12,5 +12,5 @@
|
||||
|
||||
- name: Set postgresql service name
|
||||
set_fact:
|
||||
postgresql_service_name: "{{ kubernetes_namespace }}-postgresql"
|
||||
postgresql_service_name: "{{ kubernetes_deployment_name }}-postgresql"
|
||||
when: "pg_hostname is not defined or pg_hostname == ''"
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
- name: Deploy and Activate Postgres (Kubernetes)
|
||||
shell: |
|
||||
helm install --name awx --namespace {{ kubernetes_namespace }} \
|
||||
helm install --name {{ kubernetes_deployment_name }} --namespace {{ kubernetes_namespace }} \
|
||||
--set postgresUser={{ pg_username }} \
|
||||
--set postgresPassword={{ pg_password }} \
|
||||
--set postgresDatabase={{ pg_database }} \
|
||||
|
||||
Reference in New Issue
Block a user