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

- include: controller_post_script.yml
  loop_control:
    loop_var: node_name
  with_items: "{{ controllers.stdout_lines }}"
