--- - name: wait for nova service registration shell: | export OS_CLOUD=devstack-admin openstack compute service list -f value -c Host | grep $(hostname) until: get_compute_service_list is not failed retries: 30 delay: 5 register: get_compute_service_list changed_when: false - name: run tools/discover_hosts.sh shell: cmd: >- ./tools/discover_hosts.sh chdir: '{{ devstack_dir }}' become: true become_user: stack delegate_to: devstack-primary - name: wait for nova hypervisor registration shell: | export OS_CLOUD=devstack-admin openstack hypervisor list -f value -c 'Hypervisor Hostname' |\ grep $(hostname) until: get_compute_service_list is not failed retries: 3 delay: 5 register: get_compute_service_list changed_when: false