blob: 9d89e5038fabe32473f41145550ee13d8ff84dee [file] [log] [blame]
Zack Williams6dc2d452017-12-20 17:50:49 -07001---
Matteo Scandolo3896c472017-08-01 13:31:42 -07002# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
Zack Williams5223dd92017-02-28 23:38:02 -070016# prep-headnode-playbook.yml
17# Preps the head node of a CORD pod for thr est of the install
18
19- name: Include vars
20 hosts: head, config
21 tasks:
22 - name: Include variables
23 include_vars: "{{ item }}"
24 with_items:
25 - "profile_manifests/{{ cord_profile }}.yml"
26 - profile_manifests/local_vars.yml
27
28- name: Prep head node
29 hosts: head
30 roles:
31 - { role: head-prep, become: yes }
32
33- name: Common prep, install certificates
34 become: yes
35 hosts: head
36 roles:
37 - common-prep
38 - pki-install
39
40- name: Install docker and configure it
41 hosts: head
42 roles:
43 - docker-install
44
Zack Williams6dc2d452017-12-20 17:50:49 -070045- name: Configure network interfaces
Zack Williams5223dd92017-02-28 23:38:02 -070046 hosts: head
47 become: yes
48 roles:
Zack Williamsfe284a12017-07-01 11:00:04 -070049 - { role: interface-config, when: not use_maas }
Zack Williams5223dd92017-02-28 23:38:02 -070050
51- name: Networking and DNS server on head node
52 hosts: head
53 become: yes
54 roles:
Zack Williamsfe284a12017-07-01 11:00:04 -070055 - { role: dns-nsd, when: not use_maas }
Zack Williams503aabf2017-10-24 09:59:35 -070056 - { role: dns-unbound, when: not use_maas }
Zack Williams5223dd92017-02-28 23:38:02 -070057
58# needs to be in another set of plays so that nsd/unbound restart handlers run
59- name: Configure DNS resolution, DHCP on head node
60 hosts: head
61 become: yes
62 roles:
Zack Williamsfe284a12017-07-01 11:00:04 -070063 - { role: dns-configure, when: not use_maas }
Zack Williamsbf43d752017-07-01 15:27:11 -070064 - { role: dhcpd, when: not (use_maas or frontend_only) }
Zack Williams5223dd92017-02-28 23:38:02 -070065
66- name: Install apt-cacher-ng
67 hosts: head
68 become: yes
69 roles:
Zack Williams79286962017-07-10 12:24:37 -070070 - { role: apt-cacher-ng, when: use_apt_cache | default(True) }
Zack Williams5223dd92017-02-28 23:38:02 -070071
Zack Williamsfe284a12017-07-01 11:00:04 -070072- name: Install apache proxy
Zack Williams5223dd92017-02-28 23:38:02 -070073 hosts: head
74 become: yes
75 roles:
Zack Williams5223dd92017-02-28 23:38:02 -070076 - apache-proxy
77