Delegate check of db connectivity during upgrade

The upgrade script assumes it is possible to make a TCP connection from
the deploy host to the db containers. This breaks when there is an ssh
bastion in the way.

Change-Id: Iaed95049e6c6590578972ff23ae70a9af3f0c8fe
This commit is contained in:
Jonathan Rosser 2018-10-31 17:00:55 +00:00
parent 0387e5a269
commit 802fb4649a
1 changed files with 2 additions and 2 deletions

View File

@ -41,12 +41,12 @@
post_tasks:
- name: Wait for mariadb port 3306 to be available
local_action:
module: wait_for
wait_for:
port: "3306"
host: "{{ ansible_host | default(ansible_ssh_host | default(inventory_hostname)) }}"
retries: 10
delay: 10
delegate_to: "{{ groups['utility_all'][0] }}"
- name: Check that WSREP is ready and Synced
shell: "/usr/bin/mysqladmin extended-status | egrep '(wsrep_local_state_comment)'"