Andy Bavier | 2ab9b00 | 2016-02-01 15:06:13 -0500 | [diff] [blame] | 1 | # 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 Bavier | b146f7f | 2016-02-12 10:03:35 -0500 | [diff] [blame] | 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 |
Andy Bavier | 2ab9b00 | 2016-02-01 15:06:13 -0500 | [diff] [blame] | 21 | |
Andy Bavier | b146f7f | 2016-02-12 10:03:35 -0500 | [diff] [blame] | 22 | # - name: Run network setup script |
| 23 | # shell: ansible nova-cloud-controller -m script -u ubuntu -a "/usr/local/src/network-setup.sh" |