Zack Williams | 363bc85 | 2016-04-12 13:58:29 -0700 | [diff] [blame] | 1 | --- |
| 2 | # xos-vm-install/tasks/main.yml |
| 3 | # |
| 4 | # Install XOS on a sub vm by calling ansible |
| 5 | |
| 6 | - name: Create a vars file from template |
Zack Williams | 5ae57ef | 2016-04-12 14:01:58 -0700 | [diff] [blame] | 7 | template: |
Zack Williams | 363bc85 | 2016-04-12 13:58:29 -0700 | [diff] [blame] | 8 | src=xos-setup-vars.yml.j2 |
| 9 | dest={{ ansible_user_dir }}/xos-setup-vars.yml |
| 10 | |
| 11 | - name: Copy over XOS ansible playbook |
| 12 | copy: |
| 13 | src=xos-setup-{{ xos_configuration }}-playbook.yml |
| 14 | dest={{ ansible_user_dir }}/xos-setup-playbook.yml |
| 15 | |
| 16 | - name: Run the XOS ansible playbook |
| 17 | command: ansible-playbook {{ ansible_user_dir }}/xos-setup-playbook.yml |
Zack Williams | a3e4056 | 2016-07-05 12:05:39 -0700 | [diff] [blame^] | 18 | async: 4800 |
Zack Williams | d31bbc9 | 2016-05-20 11:43:18 -0700 | [diff] [blame] | 19 | poll: 0 |
| 20 | register: xos_setup_playbook |
Zack Williams | 5ae57ef | 2016-04-12 14:01:58 -0700 | [diff] [blame] | 21 | |