Fix mariadb role when used with check mode

This patch adds check_mode: false to tasks
in restart_services.yml which just checking
some WSREP status and if port is UP.

Closes-Bug: #2052501
Change-Id: I92a591900d85138a87991a18dd4339efd053ef1b
This commit is contained in:
Michal Arbet 2024-02-06 10:30:38 +01:00
parent 1b96b89df0
commit d0b93a631d
2 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,7 @@
timeout: 60
search_regex: "MariaDB"
register: check_mariadb_port
check_mode: false
until: check_mariadb_port is success
retries: 10
delay: 6
@ -41,6 +42,7 @@
retries: 10
delay: 6
no_log: true
check_mode: false
when:
# NOTE(yoctozepto): we don't want to wait for new nodes to fully sync
# with an existing cluster as this could take time

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixes mariadb role deployment when using Ansible check mode.
`LP#2052501 <https://bugs.launchpad.net/kolla-ansible/+bug/2052501>`__