diff --git a/tasks/persistent_cloud.yml b/tasks/persistent_cloud.yml index aa6a7d2f14..8dfdd4073c 100644 --- a/tasks/persistent_cloud.yml +++ b/tasks/persistent_cloud.yml @@ -52,6 +52,7 @@ with_items: "{{volumes}}" register: volume_available failed_when: volume_available.rc == 2 + changed_when: volume_available.rc == 0 ignore_errors: True when: volumes is defined @@ -60,7 +61,7 @@ # - local_action: shell nova --os-auth-url="{{os_auth_url}}" --os-username="admin" --os-password="{{ADMIN_PASS}}" --os-tenant-name={{inventory_tenant}} volume-attach "{{inventory_instance_name}}" "{{item.volume_id}}" "{{item.device}}" with_items: "{{volumes}}" - when: volume_available|success + when: volume_available.rc == 0 - name: wait for he host to be hot local_action: wait_for host={{ public_ip }} port=22 delay=1 timeout=600