Andy Bavier | e9042a9 | 2016-02-18 16:49:31 -0500 | [diff] [blame] | 1 | --- |
| 2 | - hosts: xos |
| 3 | sudo: no |
| 4 | remote_user: ubuntu |
| 5 | vars: |
| 6 | homedir: /tmp |
| 7 | tasks: |
| 8 | - apt: update_cache=yes |
| 9 | sudo: yes |
| 10 | |
| 11 | - apt: name={{ item }} |
| 12 | state=present |
| 13 | sudo: yes |
| 14 | with_items: |
| 15 | - git |
| 16 | - make |
| 17 | - python-novaclient |
| 18 | - python-neutronclient |
| 19 | - python-keystoneclient |
| 20 | - python-glanceclient |
| 21 | |
| 22 | - git: repo=https://github.com/open-cloud/xos.git |
| 23 | dest={{ ansible_env['PWD'] }}/xos |
| 24 | |
| 25 | - shell: make -f {{ ansible_env['PWD'] }}/xos/xos/configurations/common/Makefile.prereqs |
| 26 | |
| 27 | - copy: src={{ homedir }}/{{ item }} |
| 28 | dest={{ ansible_env['PWD'] }}/xos/xos/configurations/cord-pod/ |
| 29 | with_items: |
| 30 | - id_rsa |
| 31 | - id_rsa.pub |
| 32 | |
Andy Bavier | 6b4579e | 2016-02-19 10:18:50 -0500 | [diff] [blame] | 33 | - file: path={{ ansible_env['PWD'] }}/xos/xos/configurations/cord-pod/id_rsa |
| 34 | mode=0600 |
| 35 | |
Andy Bavier | e9042a9 | 2016-02-18 16:49:31 -0500 | [diff] [blame] | 36 | - copy: src={{ homedir }}/admin-openrc.sh |
| 37 | dest={{ ansible_env['PWD'] }}/xos/xos/configurations/cord-pod |
| 38 | |
| 39 | - copy: src={{ homedir }}/id_rsa |
| 40 | dest={{ ansible_env['PWD'] }}/xos/xos/configurations/cord-pod/node_key |
| 41 | |
| 42 | - file: path={{ ansible_env['PWD'] }}/xos/xos/configurations/cord-pod/images |
| 43 | state=directory |
| 44 | |
Andy Bavier | c3165c3 | 2016-05-10 18:12:57 -0400 | [diff] [blame] | 45 | - get_url: url=http://128.112.139.30/opencloud/trusty-server-cloudimg-amd64-disk1.img |
Andy Bavier | e9042a9 | 2016-02-18 16:49:31 -0500 | [diff] [blame] | 46 | dest={{ ansible_env['PWD'] }}/xos/xos/configurations/cord-pod/images/trusty-server-multi-nic.img |