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 | 7ec058b | 2016-05-02 10:10:39 -0700 | [diff] [blame] | 8 | update_cache=yes |
| 9 | cache_valid_time=3600 |
Zack Williams | 8625d04 | 2016-02-26 14:32:43 -0700 | [diff] [blame] | 10 | with_items: |
| 11 | - python-yaml |
| 12 | |
Zack Williams | 709f11b | 2016-03-17 14:29:51 -0700 | [diff] [blame] | 13 | - name: Add head node ubuntu user key |
| 14 | authorized_key: |
| 15 | user=ubuntu |
Zack Williams | d31bbc9 | 2016-05-20 11:43:18 -0700 | [diff] [blame] | 16 | key="{{ hostvars[groups['head'][0]]['sshkey']['stdout'] }}" |
Zack Williams | 709f11b | 2016-03-17 14:29:51 -0700 | [diff] [blame] | 17 | |
| 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 Williams | b2b8c7b | 2016-03-10 12:47:18 -0700 | [diff] [blame] | 30 | |