mirror of
https://github.com/ansible/awx.git
synced 2026-03-20 02:17:37 -02:30
Pass docker project_name whenever docker-compose is used
- Also, do no explicitly name containers
This commit is contained in:
@@ -36,6 +36,8 @@
|
|||||||
- postgres
|
- postgres
|
||||||
state: present
|
state: present
|
||||||
recreate: always
|
recreate: always
|
||||||
|
environment:
|
||||||
|
COMPOSE_PROJECT_NAME: "tools"
|
||||||
|
|
||||||
- name: Wait for postgres to initialize
|
- name: Wait for postgres to initialize
|
||||||
wait_for:
|
wait_for:
|
||||||
@@ -43,7 +45,7 @@
|
|||||||
|
|
||||||
- name: Restore to new postgres container
|
- name: Restore to new postgres container
|
||||||
shell: |
|
shell: |
|
||||||
docker-compose -f {{ playbook_dir }}/../_sources/docker-compose.yml exec -T postgres psql -U {{ pg_username }} -d {{ pg_database }} -p {{ pg_port }} < awx_dump.sql
|
COMPOSE_PROJECT_NAME=tools docker-compose -f {{ playbook_dir }}/../_sources/docker-compose.yml exec -T postgres psql -U {{ pg_username }} -d {{ pg_database }} -p {{ pg_port }} < awx_dump.sql
|
||||||
|
|
||||||
- name: Clean up temporary awx db dump
|
- name: Clean up temporary awx db dump
|
||||||
file:
|
file:
|
||||||
|
|||||||
Reference in New Issue
Block a user