blob: d6367f6b2417970cb500e00e64b9a29d0219ba2c [file] [log] [blame]
Andy Bavier12262e72016-12-02 11:36:57 -05001---
Zack Williamsa2763112017-01-03 11:38:38 -07002# cord-prep-platform.yml
Andy Bavier12262e72016-12-02 11:36:57 -05003# Prepares the CORD head node for installing OpenStack, ONOS, and XOS
4
5- name: Include vars
6 hosts: all
7 tasks:
8 - name: Include variables
9 include_vars: "{{ item }}"
10 with_items:
Zack Williamsa2763112017-01-03 11:38:38 -070011 - "profile_manifests/{{ cord_profile }}.yml"
12 - profile_manifests/local_vars.yml
Andy Bavier12262e72016-12-02 11:36:57 -050013
14- name: DNS Server and apt-cacher-ng Setup
15 hosts: head
16 become: yes
17 roles:
18 - { role: dns-nsd, when: not on_maas }
19 - { role: dns-unbound, when: not on_maas }
20 - apt-cacher-ng
21
22- name: Configure all hosts to use DNS server
Zack Williamsc989f262017-05-11 13:02:59 -070023 hosts: head, compute
Andy Bavier12262e72016-12-02 11:36:57 -050024 become: yes
25 roles:
26 - { role: dns-configure, when: not on_maas }
27
28- name: Prep systems
Zack Williamsc989f262017-05-11 13:02:59 -070029 hosts: head, compute
Andy Bavier12262e72016-12-02 11:36:57 -050030 become: yes
31 roles:
32 - common-prep
Zack Williamsc989f262017-05-11 13:02:59 -070033 - pki-install
Andy Bavier12262e72016-12-02 11:36:57 -050034 - { role: cloudlab-prep, when: on_cloudlab }
Zack Williamsa2763112017-01-03 11:38:38 -070035
Zack Williamsd85d5a82017-06-09 18:56:23 -070036- include: deploy-elasticstack-playbook.yml