blob: a46bfd99f6d47d2640e4278eb2779961ab62bcdf [file] [log] [blame]
Andy Bavier2ab9b002016-02-01 15:06:13 -05001# Play: Create credentials, set up some basic OpenStack
2- hosts: head
3 sudo: no
4 tasks:
5
6 - shell: uvt-kvm ip keystone
7 register: keystone_ip
8
9 - name: Create credentials
10 template: src=templates/admin-openrc-cord.sh.j2
11 dest={{ ansible_env['PWD'] }}/admin-openrc-cord.sh
12
13 - name: Copy credentials to nova-cloud-controller
14 shell: "scp admin-openrc.sh ubuntu@nova-cloud-controller:"
15
16 - name: Copy network setup script
17 sudo: yes
18 copy: src=scripts/network-setup.sh
19 dest=/usr/local/src/network-setup.sh
20 mode=0644
21
22 - name: Run network setup script
23 shell: ansible nova-cloud-controller -m script -u ubuntu -a "/usr/local/src/network-setup.sh"