---
# xos-vm-install/tasks/main.yml
#
# Install XOS on a sub vm by calling ansible

- name: Create a vars file from template
  template:
    src=xos-setup-vars.yml.j2
    dest={{ ansible_user_dir }}/xos-setup-vars.yml

- name: Copy over XOS ansible playbook
  copy:
    src=xos-setup-{{ xos_configuration }}-playbook.yml
    dest={{ ansible_user_dir }}/xos-setup-playbook.yml

- name: Run the XOS ansible playbook
  command: ansible-playbook {{ ansible_user_dir }}/xos-setup-playbook.yml
  async: 1200
  poll: 0
  register: xos_setup_playbook


---
# xos-vm-install/tasks/main.yml
#
# Install XOS on a sub vm by calling ansible

- name: Create a vars file from template
  template:
    src=xos-setup-vars.yml.j2
    dest={{ ansible_user_dir }}/xos-setup-vars.yml

- name: Copy over XOS ansible playbook
  copy:
    src=xos-setup-{{ xos_configuration }}-playbook.yml
    dest={{ ansible_user_dir }}/xos-setup-playbook.yml

- name: Run the XOS ansible playbook
  command: ansible-playbook {{ ansible_user_dir }}/xos-setup-playbook.yml
  async: 2400
  poll: 0
  register: xos_setup_playbook


Increase the amount of time the xos VM async playbook can take from 20m to 40m as it downloads more
Increase the amount of time the xos VM async playbook can take from 20m to 40m as it downloads more
