aboutsummaryrefslogtreecommitdiffstats
path: root/roles/vmm/tasks/main.yml
blob: 81ddafc7e1a24f27954f018fe9083c48ee4944e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

# vmm_deploy ~~ tasks/main.yml

---

- name: Check that iso directory exists
  file:
    path: "{{ vmm.iso_dir }}"
    state: directory
    recurse: true

- name: Check that disk directory exists
  file:
    path: "{{ vmm.disk_dir }}"
    state: directory
    recurse: true

- name: Download all iso files
  include: download_iso.yml iso={{ item }}
  with_items: "{{ vmm.iso }}"

- name: Generate disks for all vms
  include: generate_disk.yml guest={{ item }}
  with_items: "{{ vms }}"

- include: generate_vmconf.yml
remember that computers suck.