mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
Update migrate_schema to use check_migrations (#2025)
Update migrate schema showmigrations conditional
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
pod: "{{ awx_web_pod_name }}"
|
pod: "{{ awx_web_pod_name }}"
|
||||||
container: "{{ ansible_operator_meta.name }}-web"
|
container: "{{ ansible_operator_meta.name }}-web"
|
||||||
command: >-
|
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
|
changed_when: false
|
||||||
when: awx_web_pod_name != ''
|
when: awx_web_pod_name != ''
|
||||||
register: database_check
|
register: database_check
|
||||||
|
|||||||
Reference in New Issue
Block a user