ceph: allow curl tasks to run in dry run mode
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: I5b722ac111db0a1b6272a95496251107e23dd764
Closes-Bug: #1803986

dprince/tripleo-heat-templates,openstack/tripleo-heat-templates,openstack/tripleo-heat-templates,dprince/tripleo-heat-templates