Fix bind-mount problem with pg12 upgrades

This commit is contained in:
Christian M. Adams
2021-01-19 16:01:27 -05:00
parent 3a467067f3
commit ac925a03b5
3 changed files with 34 additions and 12 deletions

View File

@@ -36,6 +36,12 @@
register: awx_secret_key
- block:
- name: Remove AWX containers before migrating postgres so that the old postgres container does not get used
docker_compose:
project_src: "{{ docker_compose_dir }}"
state: absent
ignore_errors: true
- name: Run migrations in task container
shell: docker-compose run --rm --service-ports task awx-manage migrate --no-input
args: