Update migrate_schema to use check_migrations (#2025)

Update migrate schema showmigrations conditional
This commit is contained in:
Albert Daunis
2025-06-25 21:59:23 +02:00
committed by GitHub
parent 0a89fc87a6
commit e9750b489e

View File

@@ -6,7 +6,7 @@
pod: "{{ awx_web_pod_name }}"
container: "{{ ansible_operator_meta.name }}-web"
command: >-
bash -c "awx-manage showmigrations | grep -v '[X]' | grep '[ ]' | wc -l"
bash -c "awx-manage showmigrations | grep -v '(no migrations)' | grep -v '[X]' | grep '[ ]' | wc -l"
changed_when: false
when: awx_web_pod_name != ''
register: database_check