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