blob: 154ba500a26e70c0610cea18b33815ad327e20c0 [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 Williamsc3dd2c82017-06-19 22:05:49 -070014- name: Set hostvars with defaults for each node
15 hosts: head, config
16 roles:
17 - hostvars-defaults
18
Zack Williamsc989f262017-05-11 13:02:59 -070019- name: Copy cord_profile to head node from config node
20 hosts: head
21 roles:
22 - { role: copy-profile, become: yes }
23 - { role: ssh-install, become: yes }
24 - { role: glance-images, become: yes }
25 - { role: copy-credentials, become: yes, when: on_maas }
26
27- name: Install ssh keys when using MaaS
28 hosts: build
29 roles:
30 - { role: ssh-install-maas, become: yes, when: on_maas }
31