Andy Bavier | 12262e7 | 2016-12-02 11:36:57 -0500 | [diff] [blame] | 1 | --- |
| 2 | # Deploys OpenStack in LXD containers on the CORD head node |
| 3 | |
| 4 | - name: Include vars |
| 5 | hosts: all |
| 6 | tasks: |
| 7 | - name: Include variables |
| 8 | include_vars: "{{ item }}" |
| 9 | with_items: |
| 10 | - vars/cord_defaults.yml |
| 11 | - vars/cord.yml |
| 12 | - vars/example_keystone.yml |
| 13 | |
| 14 | - name: Configure head node, create containers |
| 15 | hosts: head |
| 16 | roles: |
| 17 | - { role: head-prep, become: yes } |
| 18 | - create-lxd |
| 19 | |
| 20 | - name: Start OpenStack install |
| 21 | hosts: head |
| 22 | roles: |
| 23 | - juju-setup |
| 24 | |
| 25 | # Put plays here that will execute in parallel to |
| 26 | # the OpenStack installation |
| 27 | |
| 28 | - name: Finish OpenStack install |
| 29 | hosts: head |
| 30 | roles: |
| 31 | - juju-finish |