| --- |
| # copy-profile-playbook.yml |
| # Copies the profile to the head node |
| |
| - name: Include vars |
| hosts: head, config |
| tasks: |
| - name: Include variables |
| include_vars: "{{ item }}" |
| with_items: |
| - "profile_manifests/{{ cord_profile }}.yml" |
| - profile_manifests/local_vars.yml |
| |
| - name: Copy cord_profile to head node from config node |
| hosts: head |
| roles: |
| - { role: copy-profile, become: yes } |
| - { role: ssh-install, become: yes } |
| - { role: glance-images, become: yes, when: use_maas } |
| - { role: copy-credentials, become: yes, when: use_maas } |
| |
| - name: Install ssh keys when using MaaS |
| hosts: build |
| roles: |
| - { role: ssh-install-maas, become: yes, when: use_maas } |
| |