blob: a73fe5f094e8402b5a1316c0996f7b9d96824c7c [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
33 - copy: src={{ homedir }}/admin-openrc.sh
34 dest={{ ansible_env['PWD'] }}/xos/xos/configurations/cord-pod
35
36 - copy: src={{ homedir }}/id_rsa
37 dest={{ ansible_env['PWD'] }}/xos/xos/configurations/cord-pod/node_key
38
39 - file: path={{ ansible_env['PWD'] }}/xos/xos/configurations/cord-pod/images
40 state=directory
41
42 - get_url: url=http://www.vicci.org/opencloud/trusty-server-cloudimg-amd64-disk1.img
43 dest={{ ansible_env['PWD'] }}/xos/xos/configurations/cord-pod/images/trusty-server-multi-nic.img