Zack Williams | 8625d04 | 2016-02-26 14:32:43 -0700 | [diff] [blame] | 1 | --- |
| 2 | # file: roles/compute-prep/tasks/main.yml |
| 3 | |
Zack Williams | 709f11b | 2016-03-17 14:29:51 -0700 | [diff] [blame] | 4 | - name: Install packages |
Zack Williams | b2b8c7b | 2016-03-10 12:47:18 -0700 | [diff] [blame] | 5 | apt: |
| 6 | name={{ item }} |
| 7 | state=latest |
Zack Williams | 8625d04 | 2016-02-26 14:32:43 -0700 | [diff] [blame] | 8 | with_items: |
| 9 | - python-yaml |
| 10 | |
Zack Williams | 709f11b | 2016-03-17 14:29:51 -0700 | [diff] [blame] | 11 | - 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 Williams | b2b8c7b | 2016-03-10 12:47:18 -0700 | [diff] [blame] | 28 | |