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 | |
Andy Bavier | 1cac001 | 2017-03-13 10:06:18 -0400 | [diff] [blame] | 16 | # setup PKI when needed for development |
| 17 | - name: Create Root CA, Intermediate CA, Server certs |
| 18 | hosts: localhost |
| 19 | connection: local |
| 20 | roles: |
| 21 | - { role: pki-root-ca, when: needs_pki_install is defined and needs_pki_install } |
| 22 | - { role: pki-intermediate-ca, when: needs_pki_install is defined and needs_pki_install } |
| 23 | - { role: pki-cert, when: needs_pki_install is defined and needs_pki_install } |
| 24 | |
| 25 | # install PKI when needed for development |
| 26 | - name: Install CA certificates |
| 27 | hosts: head |
| 28 | roles: |
| 29 | - { role: pki-install, when: needs_pki_install is defined and needs_pki_install } |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 30 | |
| 31 | - name: Create CORD profile, create docker images, bootstrap XOS in docker |
| 32 | hosts: head |
| 33 | roles: |
| 34 | - cord-profile |
| 35 | - xos-docker-images |
| 36 | - xos-bootstrap |
| 37 | |
| 38 | - include: add-bootstrap-containers-playbook.yml |
| 39 | |
| 40 | - name: Onboard XOS services |
| 41 | hosts: xos_bootstrap_ui |
| 42 | connection: docker |
| 43 | roles: |
| 44 | - xos-onboarding |
| 45 | |
| 46 | - include: add-onboard-containers-playbook.yml |
| 47 | |
| 48 | - name: Check to see if XOS UI is ready, apply profile config |
| 49 | hosts: xos_ui |
| 50 | connection: docker |
| 51 | roles: |
| 52 | - xos-ready |
| 53 | - xos-config |