2024-09-26 10:16:03 +00:00
|
|
|
- name: Configure base Debian host
|
|
|
|
hosts: all
|
2024-09-27 11:26:47 +00:00
|
|
|
vars_files: ../vault.yml
|
2024-09-23 12:30:38 +00:00
|
|
|
tasks:
|
2024-09-23 14:32:28 +00:00
|
|
|
- name: Configure base system
|
|
|
|
import_role:
|
2024-09-23 14:58:52 +00:00
|
|
|
name: debian-base
|
2024-09-23 14:32:28 +00:00
|
|
|
- name: Configure guest
|
|
|
|
import_role:
|
2024-09-23 14:58:52 +00:00
|
|
|
name: debian-guest
|
|
|
|
when: ansible_virtualization_role == 'guest'
|
2024-09-23 14:32:28 +00:00
|
|
|
- name: Configure virtual machine
|
|
|
|
import_role:
|
2024-09-23 14:58:52 +00:00
|
|
|
name: debian-qemu
|
|
|
|
when: ansible_virtualization_role == 'guest' and ansible_virtualization_type == 'kvm'
|
2024-10-01 12:14:51 +00:00
|
|
|
- name: Configure virtual machine or host
|
|
|
|
import_role:
|
|
|
|
name: debian-host
|
|
|
|
when: ansible_virtualization_role == 'host' or ansible_virtualization_type == 'kvm'
|