blob: a46bfd99f6d47d2640e4278eb2779961ab62bcdf [file] [log] [blame]
# Play: Create credentials, set up some basic OpenStack
- hosts: head
sudo: no
tasks:
- shell: uvt-kvm ip keystone
register: keystone_ip
- name: Create credentials
template: src=templates/admin-openrc-cord.sh.j2
dest={{ ansible_env['PWD'] }}/admin-openrc-cord.sh
- name: Copy credentials to nova-cloud-controller
shell: "scp admin-openrc.sh ubuntu@nova-cloud-controller:"
- name: Copy network setup script
sudo: yes
copy: src=scripts/network-setup.sh
dest=/usr/local/src/network-setup.sh
mode=0644
- name: Run network setup script
shell: ansible nova-cloud-controller -m script -u ubuntu -a "/usr/local/src/network-setup.sh"