blob: ac65bc84b4b0d6c418b20dc95c933fb519d1a776 [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 Williams8625d042016-02-26 14:32:43 -07008 with_items:
9 - python-yaml
10
Zack Williams709f11b2016-03-17 14:29:51 -070011- name: Add head node ubuntu user key
12 authorized_key:
13 user=ubuntu
14 key="{{ hostvars[groups['head'][0]]['head_ssh_pubkey']['stdout'] }}"
15
16- name: Add route via /etc/rc.local
17 template:
18 src=rc.local.j2
19 dest=/etc/rc.local
20 mode=0755
21 notify:
22 - run rc.local
23
24- name: Create /var/lib/nova dir
25 file:
26 path=/var/lib/nova
27 state=directory
Zack Williamsb2b8c7b2016-03-10 12:47:18 -070028