blob: 460ed42695e55dc77716dd873d013bbde052b03d [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
Andy Bavierb146f7f2016-02-12 10:03:35 -050016# - 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
Andy Bavier2ab9b002016-02-01 15:06:13 -050021
Andy Bavierb146f7f2016-02-12 10:03:35 -050022# - name: Run network setup script
23# shell: ansible nova-cloud-controller -m script -u ubuntu -a "/usr/local/src/network-setup.sh"