main.yml 562 B

12345678910111213141516171819202122232425
  1. ---
  2. - name: Remove any existing inventory
  3. file:
  4. path: "{{ inventory_path }}/hosts"
  5. state: absent
  6. - name: Refresh the inventory
  7. meta: refresh_inventory
  8. - name: Generate in-memory inventory
  9. include: openstack.yml
  10. - name: Checkpoint in-memory data into a static inventory
  11. include: checkpoint.yml
  12. - name: Generate SSH config for accessing hosts via bastion
  13. include: sshconfig.yml
  14. when: use_bastion|bool
  15. - name: Configure SSH tunneling to access UI
  16. include: sshtun.yml
  17. become: true
  18. when:
  19. - use_bastion|bool
  20. - ui_ssh_tunnel|bool