When running dry-run, --check option is used with Ansible CLI which
means the shell command don't actually run so the curl isn't producting
any change. This patch fixes the tasks that relied on the curl outputs
to only run these tasks when the curl changed and produced something.
Change-Id: I5b722ac111db0a1b6272a95496251107e23dd764
Closes-Bug: #1803986
(cherry picked from commit 89f276cdab4a4cefe45de996f6e85f6fe75a5cb2)
Reviewed: https:/ /review. openstack. org/618898 /git.openstack. org/cgit/ openstack/ tripleo- heat-templates/ commit/ ?id=9be794b24b7 f17b132f6d7a89b 886430b8eb6c59
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit 9be794b24b7f17b 132f6d7a89b8864 30b8eb6c59
Author: Emilien Macchi <email address hidden>
Date: Mon Nov 19 08:46:32 2018 -0500
ceph: allow curl tasks to run in dry run mode
When running dry-run, --check option is used with Ansible CLI which
means the shell command don't actually run so the curl isn't producting
any change. This patch fixes the tasks that relied on the curl outputs
to only run these tasks when the curl changed and produced something.
Change-Id: I5b722ac111db0a 1b6272a95496251 107e23dd764 fe45de996f6e85f 6fe75a5cb2)
Closes-Bug: #1803986
(cherry picked from commit 89f276cdab4a4ce