keystone: Remove redundant 'when'

In a multi-controller node, the presence of "run_once: True"
and "when: inventory_hostname == groups['keystone'][-1]"
will cause the task to be skipped

Closes-Bug: #1987982

Change-Id: I6a8f4ca285cda0675711b631aeed7ae4c992d879
This commit is contained in:
LinPeiWen 2022-08-10 21:02:10 +08:00
parent 37d9cf0d19
commit aa80f81d30
3 changed files with 6 additions and 2 deletions

View File

@ -96,4 +96,3 @@
run_once: True
when:
- kolla_action == "upgrade"
- inventory_hostname == groups[service.group][-1]

View File

@ -45,5 +45,4 @@
value: 0
run_once: True
when:
- inventory_hostname == groups['keystone'][-1]
- not use_preconfigured_databases | bool

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Fixed `bug #1987982 <https://bugs.launchpad.net/kolla-ansible/+bug/1987982>`_
This bug caused the database log_bin_trust_function_creators variable
not to be set back to "OFF" after a keystone upgrade.