Ensure there is no redis on host

In the past releases overcloud-full image could contained redis package
even though containerized deployment has been used. This is problematic
during minor update, so we need to make sure the package is removed.

Change-Id: I827dd918bb83c67c6e02a4d91fed2a6959361283
This commit is contained in:
Martin Magr 2019-04-26 13:30:12 +02:00
parent b222fd2324
commit 5a4223c869
1 changed files with 12 additions and 1 deletions

View File

@ -229,7 +229,18 @@ outputs:
Log files from redis containers can be found under
/var/log/containers/redis.
ignore_errors: true
upgrade_tasks: []
update_tasks:
- name: Ensure redis is uninstalled on container host
when: step|int == 1
package:
name: redis
state: absent
upgrade_tasks:
- name: Ensure redis is uninstalled on container host
when: step|int == 1
package:
name: redis
state: absent
post_upgrade_tasks:
- when: step|int == 1
import_role: