- name: register swift storage nodes
  shell: |
    source {{ undercloud_rc }}
    openstack server list -f json |  jq -r -c '.[] | select(.Name | contains("swift") or contains("objectstorage")) | .Name'
  register: swift_nodes

- include: compute_detect.yml

- include: node_upgrade_script.yml
  loop_control:
    loop_var: node_name
  with_items:
    - "{{ compute_nodes }}"
    - "{{ swift_nodes.stdout_lines }}"
