kolla-ansible/ansible
Mark Goddard 28273411a8 Fix kolla_toolbox error handling
Backport only.

The kolla_toolbox Ansible module executes as-hoc ansible commands in the
kolla_toolbox container, and parses the output to make it look as if
ansible-playbook executed the command. Currently however, this module
sometimes fails to catch failures of the underlying command, and also
sometimes shows tasks as 'ok' when the underlying command was changed.

This change introduces a check on the status field for non-JSON output,
and assumes the module has changes on success.

NOTE: The original patch on master
(https://review.opendev.org/#/c/682340/) cannot be backported as it
relies on Ansible 2.5+ in the kolla_toolbox container.

Change-Id: Ib1e33f8e5c60d98b76a4eba9f405af89431d60bc
Closes-Bug: 1844114
2019-09-24 16:32:22 +00:00
..
action_plugins Enhance merge_* action plugins to allow expected relative includes 2019-07-16 18:12:04 +00:00
group_vars Merge "Add support to enable l3 port-forwarding plugin" into stable/stein 2019-09-04 10:41:20 +00:00
inventory Merge "Add cyborg to kolla-ansible" 2019-03-28 08:20:13 +00:00
library Fix kolla_toolbox error handling 2019-09-24 16:32:22 +00:00
roles Fix Nova cell search 2019-09-09 13:45:50 +00:00
bifrost.yml Factor out OpenStack release detection playbook 2018-11-29 15:49:41 +00:00
certificates.yml Make the certificates role just run on deploy node 2018-03-20 19:57:30 +08:00
destroy.yml Give plays in the playbooks a name 2016-12-05 15:40:56 +00:00
detect-release.yml Factor out OpenStack release detection playbook 2018-11-29 15:49:41 +00:00
gather-facts.yml Fix fact gathering with --limit 2018-12-07 14:49:27 +00:00
kolla-host.yml Merge "Support Docker CE in bootstrap-servers" 2018-12-28 12:21:26 +00:00
mariadb_backup.yml Factor out OpenStack release detection playbook 2018-11-29 15:49:41 +00:00
mariadb_recovery.yml Factor out OpenStack release detection playbook 2018-11-29 15:49:41 +00:00
post-deploy.yml Use correct variable for default certificate paths 2018-11-19 16:25:28 +00:00
site.yml Merge "Cleanup glance-registry" 2019-04-01 11:13:55 +00:00