Zack Williams | 2478b30 | 2017-02-14 10:42:55 -0700 | [diff] [blame] | 1 | --- |
| 2 | # compute-node-refresh-playbook.yml |
| 3 | # Re-adds compute nodes to a XOS after a teardown cycle |
| 4 | # This analogous to the legacy `make vtn` command in service-profile |
| 5 | # On physical/CiaB w/MaaS: |
| 6 | # ansible-playbook -i /etc/maas/ansible/pod-inventory --extra-vars=@/opt/cord/build/genconfig/config.yml compute-node-refresh-playbook.yml |
| 7 | |
| 8 | - name: Include vars |
| 9 | hosts: all |
| 10 | tasks: |
| 11 | - name: Include variables |
| 12 | include_vars: "{{ item }}" |
| 13 | with_items: |
| 14 | - "profile_manifests/{{ cord_profile }}.yml" |
| 15 | - profile_manifests/local_vars.yml |
| 16 | |
| 17 | - name: Recreate compute node configuration |
| 18 | hosts: head |
| 19 | roles: |
| 20 | - compute-node-config |
| 21 | |
| 22 | - include: add-onboard-containers-playbook.yml |
| 23 | |
| 24 | - name: Enable compute nodes in XOS |
| 25 | hosts: xos_ui |
| 26 | connection: docker |
| 27 | roles: |
| 28 | - compute-node-enable |
| 29 | |