openstack-ansible-galera_se.../tasks
Jesse Pretorius 69e2c736a0 When upgrading, only stop the service if it exists
In Id9c4f11b3536e7f9d510f5ef8e6d82a82a96adac we implemented a
failed_when condition to ignore the state of the service stop task
when `galera_ignore_cluster_state=true` is passed through.

Unfortunately, the omit filter does not work in a task context [1],
resulting in the task always failing because the omit placeholder
string is evaluated as true. This makes the task always fail when
running an upgrade.

In this patch we change the task flow to evaluate whether a service
exists, and if it does then to stop it - otherwise skip that task.
This should cater for the rolling replacement use-case and will
work in every other situation too.

[1] https://github.com/ansible/ansible/issues/25678

Change-Id: Ib26c807057b9114e02ad32c759a5028555788363
2018-12-18 14:34:39 +00:00
..
galera_cluster_state.yml Correct cluster name check 2018-05-31 18:56:52 -05:00
galera_install.yml Revisit conflicting package removal 2018-09-18 04:00:11 +01:00
galera_install_apt.yml Fix ansible deprecation warnings 2018-12-03 17:28:43 +00:00
galera_install_dnf.yml Remove the unnecessary space 2018-07-30 12:29:07 -03:00
galera_install_download_extra_packages.yml Remove the unnecessary space 2018-07-30 12:29:07 -03:00
galera_install_yum.yml Revisit conflicting package removal 2018-09-18 04:00:11 +01:00
galera_install_zypper.yml Revisit conflicting package removal 2018-09-18 04:00:11 +01:00
galera_post_install.yml Enable the xinetd service for reboot 2018-09-26 12:58:10 -06:00
galera_setup.yml Fix ansible deprecation warnings 2018-12-03 17:28:43 +00:00
galera_ssl.yml Remove static option from include_tasks 2018-11-04 20:48:48 -08:00
galera_ssl_self_signed.yml Increase Galera self-signed SSL CA expiration 2018-12-10 14:46:22 -08:00
galera_upgrade.yml Remove static option from include_tasks 2018-11-04 20:48:48 -08:00
galera_upgrade_pre.yml When upgrading, only stop the service if it exists 2018-12-18 14:34:39 +00:00
main.yml Restore support for percona packages when using ppc64le 2018-02-23 16:48:15 +00:00