blob: ffdb758eb0a5a7711d7aeea14984684d2ca7e6d1 [file] [log] [blame]
Zack Williams5223dd92017-02-28 23:38:02 -07001---
2# prep-headnode-playbook.yml
3# Preps the head node of a CORD pod for thr est of the install
4
5- name: Include vars
6 hosts: head, config
7 tasks:
8 - name: Include variables
9 include_vars: "{{ item }}"
10 with_items:
11 - "profile_manifests/{{ cord_profile }}.yml"
12 - profile_manifests/local_vars.yml
13
14- name: Prep head node
15 hosts: head
16 roles:
17 - { role: head-prep, become: yes }
18
19- name: Common prep, install certificates
20 become: yes
21 hosts: head
22 roles:
23 - common-prep
24 - pki-install
25
26- name: Install docker and configure it
27 hosts: head
28 roles:
29 - docker-install
30
31- name: Configure management network
32 hosts: head
33 become: yes
34 roles:
Zack Williamsfe284a12017-07-01 11:00:04 -070035 - { role: interface-config, when: not use_maas }
Zack Williams5223dd92017-02-28 23:38:02 -070036
37- name: Networking and DNS server on head node
38 hosts: head
39 become: yes
40 roles:
Zack Williamsfe284a12017-07-01 11:00:04 -070041 - { role: head-mgmtbr, when: not use_maas }
42 - { role: dns-unbound, when: not use_maas }
43 - { role: dns-nsd, when: not use_maas }
Zack Williams5223dd92017-02-28 23:38:02 -070044
45# needs to be in another set of plays so that nsd/unbound restart handlers run
46- name: Configure DNS resolution, DHCP on head node
47 hosts: head
48 become: yes
49 roles:
Zack Williamsfe284a12017-07-01 11:00:04 -070050 - { role: dns-configure, when: not use_maas }
Zack Williamsbf43d752017-07-01 15:27:11 -070051 - { role: dhcpd, when: not (use_maas or frontend_only) }
Zack Williams5223dd92017-02-28 23:38:02 -070052
53- name: Install apt-cacher-ng
54 hosts: head
55 become: yes
56 roles:
Zack Williams79286962017-07-10 12:24:37 -070057 - { role: apt-cacher-ng, when: use_apt_cache | default(True) }
Zack Williams5223dd92017-02-28 23:38:02 -070058
Zack Williamsfe284a12017-07-01 11:00:04 -070059- name: Install apache proxy
Zack Williams5223dd92017-02-28 23:38:02 -070060 hosts: head
61 become: yes
62 roles:
Zack Williams5223dd92017-02-28 23:38:02 -070063 - apache-proxy
64