Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 1 | --- |
| 2 | # copy-profile-book.yml |
| 3 | # Copies the profile to the head node |
| 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: Copy cord_profile to head node from config node |
| 15 | hosts: head |
| 16 | roles: |
| 17 | - { role: copy-profile, become: yes } |
| 18 | - { role: ssh-install, become: yes } |
| 19 | - { role: glance-images, become: yes } |
| 20 | - { role: copy-credentials, become: yes, when: on_maas } |
| 21 | |
| 22 | - name: Install ssh keys when using MaaS |
| 23 | hosts: build |
| 24 | roles: |
| 25 | - { role: ssh-install-maas, become: yes, when: on_maas } |
| 26 | |