Zack Williams | 5223dd9 | 2017-02-28 23:38:02 -0700 | [diff] [blame] | 1 | --- |
| 2 | # prep-computenode-playbook.yml |
| 3 | # Prepares a compute node on a CORD pod |
| 4 | |
| 5 | - name: Include vars |
| 6 | hosts: compute |
| 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: Common prep, install SSL certificates |
| 15 | hosts: compute |
| 16 | become: yes |
| 17 | roles: |
| 18 | - common-prep |
Zack Williams | fe284a1 | 2017-07-01 11:00:04 -0700 | [diff] [blame] | 19 | - { role: pki-install, when: not use_maas } |
Zack Williams | 5223dd9 | 2017-02-28 23:38:02 -0700 | [diff] [blame] | 20 | |
| 21 | - name: Configure management network |
| 22 | hosts: compute |
| 23 | become: yes |
| 24 | roles: |
Zack Williams | fe284a1 | 2017-07-01 11:00:04 -0700 | [diff] [blame] | 25 | - { role: interface-config, when: not use_maas } |
Zack Williams | 5223dd9 | 2017-02-28 23:38:02 -0700 | [diff] [blame] | 26 | |
| 27 | - name: Use headnode DNS server |
| 28 | hosts: compute |
| 29 | become: yes |
| 30 | roles: |
Zack Williams | fe284a1 | 2017-07-01 11:00:04 -0700 | [diff] [blame] | 31 | - { role: dns-configure, when: not use_maas } |
Zack Williams | 5223dd9 | 2017-02-28 23:38:02 -0700 | [diff] [blame] | 32 | |
| 33 | - name: Prep compute node |
| 34 | hosts: compute |
| 35 | become: yes |
| 36 | roles: |
| 37 | - compute-prep |
| 38 | |