blob: fe2959770cd2849b70042323b9fa6736e3965b10 [file] [log] [blame]
Zack Williamsc989f262017-05-11 13:02:59 -07001---
Zack Williamsc3dd2c82017-06-19 22:05:49 -07002# copy-profile-playbook.yml
Zack Williamsc989f262017-05-11 13:02:59 -07003# 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 Williamsc989f262017-05-11 13:02:59 -070014- 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 Williamsfe284a12017-07-01 11:00:04 -070019 - { role: glance-images, become: yes, when: use_maas }
Zack Williams79286962017-07-10 12:24:37 -070020 - { role: copy-credentials, become: yes, when: not ( frontend_only | default(False) ) }
Zack Williamsc989f262017-05-11 13:02:59 -070021
22- name: Install ssh keys when using MaaS
23 hosts: build
24 roles:
Zack Williamsfe284a12017-07-01 11:00:04 -070025 - { role: ssh-install-maas, become: yes, when: use_maas }
Zack Williamsc989f262017-05-11 13:02:59 -070026