blob: eb296b73f9ca72329a65f0b4f737525db0e191a6 [file] [log] [blame]
Andy Baviere9042a92016-02-18 16:49:31 -05001---
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 Bavier6b4579e2016-02-19 10:18:50 -050033 - file: path={{ ansible_env['PWD'] }}/xos/xos/configurations/cord-pod/id_rsa
34 mode=0600
35
Andy Baviere9042a92016-02-18 16:49:31 -050036 - 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
45 - get_url: url=http://www.vicci.org/opencloud/trusty-server-cloudimg-amd64-disk1.img
46 dest={{ ansible_env['PWD'] }}/xos/xos/configurations/cord-pod/images/trusty-server-multi-nic.img