Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 1 | --- |
| 2 | # deploy-xos-playbook.yml |
| 3 | |
| 4 | - name: Include vars |
| 5 | hosts: all |
| 6 | tasks: |
| 7 | - name: Include variables |
| 8 | include_vars: "{{ item }}" |
| 9 | with_items: |
| 10 | - "profile_manifests/{{ cord_profile }}.yml" |
| 11 | - profile_manifests/local_vars.yml |
| 12 | |
| 13 | # for docker, docker-compose |
| 14 | - include: devel-tools-playbook.yml |
| 15 | |
| 16 | # for generating SSL certs |
| 17 | - include: pki-setup-playbook.yml |
| 18 | |
| 19 | - name: Create CORD profile, create docker images, bootstrap XOS in docker |
| 20 | hosts: head |
| 21 | roles: |
| 22 | - cord-profile |
| 23 | - xos-docker-images |
| 24 | - xos-bootstrap |
| 25 | |
| 26 | - include: add-bootstrap-containers-playbook.yml |
| 27 | |
| 28 | - name: Onboard XOS services |
| 29 | hosts: xos_bootstrap_ui |
| 30 | connection: docker |
| 31 | roles: |
| 32 | - xos-onboarding |
| 33 | |
| 34 | - include: add-onboard-containers-playbook.yml |
| 35 | |
| 36 | - name: Check to see if XOS UI is ready, apply profile config |
| 37 | hosts: xos_ui |
| 38 | connection: docker |
| 39 | roles: |
| 40 | - xos-ready |
| 41 | - xos-config |
| 42 | |