blob: b1877db44d7219f35a258ac431a3b436354a1988 [file] [log] [blame]
---
# prep-headnode-playbook.yml
# Preps the head node of a CORD pod for thr est of the install
- name: Include vars
hosts: head, config
tasks:
- name: Include variables
include_vars: "{{ item }}"
with_items:
- "profile_manifests/{{ cord_profile }}.yml"
- profile_manifests/local_vars.yml
- name: Prep head node
hosts: head
roles:
- { role: head-prep, become: yes }
- name: Common prep, install certificates
become: yes
hosts: head
roles:
- common-prep
- pki-install
- name: Install docker and configure it
hosts: head
roles:
- docker-install
- name: Configure management network
hosts: head
become: yes
roles:
- { role: interface-config, when: not use_maas }
- name: Networking and DNS server on head node
hosts: head
become: yes
roles:
- { role: head-mgmtbr, when: not use_maas }
- { role: dns-unbound, when: not use_maas }
- { role: dns-nsd, when: not use_maas }
# needs to be in another set of plays so that nsd/unbound restart handlers run
- name: Configure DNS resolution, DHCP on head node
hosts: head
become: yes
roles:
- { role: dns-configure, when: not use_maas }
- { role: dhcpd, when: not use_maas }
- name: Install apt-cacher-ng
hosts: head
become: yes
roles:
- { role: apt-cacher-ng, when: use_apt_cache }
- name: Install apache proxy
hosts: head
become: yes
roles:
- apache-proxy