Zack Williams | 5223dd9 | 2017-02-28 23:38:02 -0700 | [diff] [blame] | 1 | --- |
| 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 Williams | fe284a1 | 2017-07-01 11:00:04 -0700 | [diff] [blame] | 35 | - { role: interface-config, when: not use_maas } |
Zack Williams | 5223dd9 | 2017-02-28 23:38:02 -0700 | [diff] [blame] | 36 | |
| 37 | - name: Networking and DNS server on head node |
| 38 | hosts: head |
| 39 | become: yes |
| 40 | roles: |
Zack Williams | fe284a1 | 2017-07-01 11:00:04 -0700 | [diff] [blame] | 41 | - { role: head-mgmtbr, when: not use_maas } |
| 42 | - { role: dns-unbound, when: not use_maas } |
| 43 | - { role: dns-nsd, when: not use_maas } |
Zack Williams | 5223dd9 | 2017-02-28 23:38:02 -0700 | [diff] [blame] | 44 | |
| 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 Williams | fe284a1 | 2017-07-01 11:00:04 -0700 | [diff] [blame] | 50 | - { role: dns-configure, when: not use_maas } |
Zack Williams | bf43d75 | 2017-07-01 15:27:11 -0700 | [diff] [blame] | 51 | - { role: dhcpd, when: not (use_maas or frontend_only) } |
Zack Williams | 5223dd9 | 2017-02-28 23:38:02 -0700 | [diff] [blame] | 52 | |
| 53 | - name: Install apt-cacher-ng |
| 54 | hosts: head |
| 55 | become: yes |
| 56 | roles: |
Zack Williams | fe284a1 | 2017-07-01 11:00:04 -0700 | [diff] [blame] | 57 | - { role: apt-cacher-ng, when: use_apt_cache } |
Zack Williams | 5223dd9 | 2017-02-28 23:38:02 -0700 | [diff] [blame] | 58 | |
Zack Williams | fe284a1 | 2017-07-01 11:00:04 -0700 | [diff] [blame] | 59 | - name: Install apache proxy |
Zack Williams | 5223dd9 | 2017-02-28 23:38:02 -0700 | [diff] [blame] | 60 | hosts: head |
| 61 | become: yes |
| 62 | roles: |
Zack Williams | 5223dd9 | 2017-02-28 23:38:02 -0700 | [diff] [blame] | 63 | - apache-proxy |
| 64 | |