provision-openstack.yml 672 B

1234567891011121314151617181920212223242526272829303132333435
  1. ---
  2. - hosts: localhost
  3. gather_facts: True
  4. become: False
  5. vars_files:
  6. - stack_params.yaml
  7. pre_tasks:
  8. - include: pre_tasks.yml
  9. roles:
  10. - role: openstack-stack
  11. - name: Refresh Server inventory
  12. hosts: localhost
  13. connection: local
  14. become: False
  15. gather_facts: False
  16. tasks:
  17. - meta: refresh_inventory
  18. - hosts: cluster_hosts
  19. name: Wait for the the nodes to come up
  20. become: False
  21. gather_facts: False
  22. tasks:
  23. - wait_for_connection:
  24. - hosts: cluster_hosts
  25. gather_facts: True
  26. tasks:
  27. - name: Debug hostvar
  28. debug:
  29. msg: "{{ hostvars[inventory_hostname] }}"
  30. verbosity: 2
  31. - include: post-provision-openstack.yml