blob: a62305ffbf48a9687008d39223c51a28b984797d [file] [log] [blame]
Zack Williams8625d042016-02-26 14:32:43 -07001---
2# file: roles/compute-prep/tasks/main.yml
3
Zack Williams709f11b2016-03-17 14:29:51 -07004- name: Install packages
Zack Williamsb2b8c7b2016-03-10 12:47:18 -07005 apt:
6 name={{ item }}
7 state=latest
Zack Williams7ec058b2016-05-02 10:10:39 -07008 update_cache=yes
9 cache_valid_time=3600
Zack Williams8625d042016-02-26 14:32:43 -070010 with_items:
11 - python-yaml
12
Zack Williams709f11b2016-03-17 14:29:51 -070013- name: Add head node ubuntu user key
14 authorized_key:
15 user=ubuntu
Zack Williamsd31bbc92016-05-20 11:43:18 -070016 key="{{ hostvars[groups['head'][0]]['sshkey']['stdout'] }}"
Zack Williams709f11b2016-03-17 14:29:51 -070017
18- name: Add route via /etc/rc.local
19 template:
20 src=rc.local.j2
21 dest=/etc/rc.local
22 mode=0755
23 notify:
24 - run rc.local
25
26- name: Create /var/lib/nova dir
27 file:
28 path=/var/lib/nova
29 state=directory
Zack Williamsb2b8c7b2016-03-10 12:47:18 -070030