summaryrefslogtreecommitdiffstats
path: root/playbooks/provisioning/openstack/provision-openstack.yml
blob: 0c673af2f53fee42e54f0fd627fbbd8486628af2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
- hosts: localhost
  gather_facts: True
  become: False
  vars_files:
    - stack_params.yaml
  pre_tasks:
    - include: pre_tasks.yml
  roles:
    - role: openstack-stack

- name: Refresh Server inventory
  hosts: localhost
  connection: local
  become: False
  gather_facts: False
  tasks:
    - meta: refresh_inventory

- hosts: cluster_hosts
  name: Wait for the the nodes to come up
  become: False
  gather_facts: False
  tasks:
    - wait_for_connection:

- hosts: cluster_hosts
  gather_facts: True
  tasks:
    - name: Debug hostvar
      debug:
        msg: "{{ hostvars[inventory_hostname] }}"
        verbosity: 2

- include: post-provision-openstack.yml