main.yml 670 B

123456789101112131415161718192021222324252627
  1. ---
  2. - name: Generate the templates
  3. include: generate-templates.yml
  4. when:
  5. - stack_state == 'present'
  6. - name: Handle the Stack (create/delete)
  7. ignore_errors: False
  8. register: stack_create
  9. os_stack:
  10. name: "{{ stack_name }}"
  11. state: "{{ stack_state }}"
  12. template: "{{ stack_template_path | default(omit) }}"
  13. wait: yes
  14. # NOTE(bogdando) OS::Neutron::Subnet doesn't support live updates for
  15. # dns_nameservers, so we can't do that for the "create stack" task.
  16. - include: subnet_update_dns_servers.yaml
  17. when:
  18. - private_dns_server is defined
  19. - stack_state == 'present'
  20. - name: CleanUp
  21. include: cleanup.yml
  22. when:
  23. - stack_state == 'present'