blob: 5ee7905745eb24b8c047716ce4d7d48fe3ddac08 [file] [log] [blame]
Zack Williams363bc852016-04-12 13:58:29 -07001---
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 Williams5ae57ef2016-04-12 14:01:58 -07007 template:
Zack Williams363bc852016-04-12 13:58:29 -07008 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 Williamsa3e40562016-07-05 12:05:39 -070018 async: 4800
Zack Williamsd31bbc92016-05-20 11:43:18 -070019 poll: 0
20 register: xos_setup_playbook
Zack Williams35624562016-08-28 17:12:26 -070021 tags:
22 - skip_ansible_lint # running a sub-job
Zack Williams5ae57ef2016-04-12 14:01:58 -070023