Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 1 | --- |
Zack Williams | c3dd2c8 | 2017-06-19 22:05:49 -0700 | [diff] [blame] | 2 | # copy-profile-playbook.yml |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 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 | |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 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 } |
Zack Williams | fe284a1 | 2017-07-01 11:00:04 -0700 | [diff] [blame] | 19 | - { role: glance-images, become: yes, when: use_maas } |
Zack Williams | 7928696 | 2017-07-10 12:24:37 -0700 | [diff] [blame] | 20 | - { role: copy-credentials, become: yes, when: not ( frontend_only | default(False) ) } |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 21 | |
| 22 | - name: Install ssh keys when using MaaS |
| 23 | hosts: build |
| 24 | roles: |
Zack Williams | fe284a1 | 2017-07-01 11:00:04 -0700 | [diff] [blame] | 25 | - { role: ssh-install-maas, become: yes, when: use_maas } |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 26 | |