[wallaby-only][ffwd] Fix unused DB users cleanup

Removal of the unused users was triggered on all mysql nodes. We now
stick only to the bootstrap node.

Change-Id: I9520979f2cdfbfbcda3f392a9f1f748dca65034b
This commit is contained in:
Lukas Bezdicka 2022-08-02 22:59:12 +02:00 committed by Lukas Bezdicka
parent 5ad62f371b
commit eef23eb58b
1 changed files with 3 additions and 1 deletions

View File

@ -105,7 +105,9 @@ outputs:
description: Ansible block to clean up unusued Openstack DB users
value:
- name: Drop unused OpenStack DB users
when: step|int == 1
when:
- step|int == 1
- mysql_short_bootstrap_node_name|lower == ansible_facts['hostname']|lower
block:
- name: mysql container id
command: "podman ps -q --filter name={{ mysql_container_name }} --filter status=running"