blob: 47559f95c0711037fa4921ca9e4ef5c4d3f9a125 [file] [log] [blame]
Zack Williamsa2763112017-01-03 11:38:38 -07001---
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 Bavier1cac0012017-03-13 10:06:18 -040016# 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 Williamsa2763112017-01-03 11:38:38 -070030
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
Matteo Scandolo40e10d52017-03-08 08:04:37 -080054
55- include: deploy-xos-gui-extensions-playbook.yml