aboutsummaryrefslogtreecommitdiff
path: root/vm-create.yml
blob: cfe9f8d6e1e6946fb6e5e4c037d0fa9347083d5e (plain)
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
27
28
- hosts: all
  become: true
  gather_facts: false

  tasks:
    - ansible.builtin.include_role:
        name: zfs
        tasks_from: dataset-check-duplicate.yml
        apply:
          delegate_to: "{{ hypervisor_host }}"

    - ansible.builtin.include_role:
        name: libvirt
        tasks_from: vm-check-duplicate.yml
        apply:
          delegate_to: "{{ hypervisor_host }}"

    - ansible.builtin.include_role:
        name: zfs
        tasks_from: dataset-create.yml
        apply:
          delegate_to: "{{ hypervisor_host }}"

    - ansible.builtin.include_role:
        name: libvirt
        tasks_from: vm-install.yml
        apply:
          delegate_to: "{{ hypervisor_host }}"