19 lines
561 B
YAML
19 lines
561 B
YAML
|
- name: Configure base Debian host
|
||
|
hosts: all
|
||
|
tasks:
|
||
|
- name: Configure virtual machine or host (not LXC)
|
||
|
import_role:
|
||
|
name: debian-host
|
||
|
when: ansible_virtualization_role == 'host' or ansible_virtualization_type == 'kvm'
|
||
|
- name: Configure base system (all)
|
||
|
import_role:
|
||
|
name: debian-base
|
||
|
- name: Configure guest
|
||
|
import_role:
|
||
|
name: debian-guest
|
||
|
when: ansible_virtualization_role == 'guest'
|
||
|
- name: Configure virtual machine
|
||
|
import_role:
|
||
|
name: debian-qemu
|
||
|
when: ansible_virtualization_type == 'kvm'
|