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: |
| 35 | - { role: interface-config, when: not on_maas } |
| 36 | |
| 37 | - name: Networking and DNS server on head node |
| 38 | hosts: head |
| 39 | become: yes |
| 40 | roles: |
| 41 | - { role: head-mgmtbr, when: not on_maas } |
| 42 | - { role: dns-unbound, when: not on_maas } |
| 43 | - { role: dns-nsd, when: not on_maas } |
| 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: |
| 50 | - { role: dns-configure, when: not on_maas } |
| 51 | - { role: dhcpd, when: not on_maas } |
| 52 | |
| 53 | - name: Install apt-cacher-ng |
| 54 | hosts: head |
| 55 | become: yes |
| 56 | roles: |
| 57 | - apt-cacher-ng |
| 58 | |
| 59 | - name: Install elasticstack, and apache proxy |
| 60 | hosts: head |
| 61 | become: yes |
| 62 | roles: |
| 63 | - java-oracle |
| 64 | - elasticstack |
| 65 | - apache-proxy |
| 66 | |