Andy Bavier | 12262e7 | 2016-12-02 11:36:57 -0500 | [diff] [blame] | 1 | --- |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 2 | # deploy-openstack-playbook.yml |
Andy Bavier | 12262e7 | 2016-12-02 11:36:57 -0500 | [diff] [blame] | 3 | # Deploys OpenStack in LXD containers on the CORD head node |
| 4 | |
| 5 | - name: Include vars |
Zack Williams | c047c87 | 2017-01-11 08:38:15 -0700 | [diff] [blame] | 6 | hosts: all, localhost |
Andy Bavier | 12262e7 | 2016-12-02 11:36:57 -0500 | [diff] [blame] | 7 | tasks: |
| 8 | - name: Include variables |
| 9 | include_vars: "{{ item }}" |
| 10 | with_items: |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 11 | - "profile_manifests/{{ cord_profile }}.yml" |
| 12 | - profile_manifests/local_vars.yml |
Andy Bavier | 12262e7 | 2016-12-02 11:36:57 -0500 | [diff] [blame] | 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 |