From 534c6755fec4c46277079ea6a45f70b0ff38b32e Mon Sep 17 00:00:00 2001 From: Randy Barlow Date: Fri, 9 Nov 2018 20:54:43 +0000 Subject: [PATCH] Does register on skipped tasks unregister the variable? Signed-off-by: Randy Barlow --- playbooks/manual/upgrade/bodhi.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/playbooks/manual/upgrade/bodhi.yml b/playbooks/manual/upgrade/bodhi.yml index 57e76d3645..4128dd68b8 100644 --- a/playbooks/manual/upgrade/bodhi.yml +++ b/playbooks/manual/upgrade/bodhi.yml @@ -53,16 +53,16 @@ - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml tasks: - - name: Find out what the current migration version is - command: /usr/bin/alembic-3 -c /etc/bodhi/alembic.ini current - register: current_migration_version - # This line can be dropped once production is upgraded to bodhi-3.11.0. - when: env == "staging" # This block can be dropped once production is upgraded to bodhi-3.11.0. - name: Find out what the current migration version is command: /usr/bin/python2 /usr/bin/alembic -c /etc/bodhi/alembic.ini current register: current_migration_version when: env == "production" + - name: Find out what the current migration version is + command: /usr/bin/alembic-3 -c /etc/bodhi/alembic.ini current + register: current_migration_version + # This line can be dropped once production is upgraded to bodhi-3.11.0. + when: env == "staging" - name: Stop the front end if there are migrations to run hosts: os-masters[0]:os-masters-stg[0]