From 52d8e1150034d98a7ad3ef0686ee7655f6906302 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Thu, 13 Jan 2022 05:56:29 +0100 Subject: [PATCH] Feat: add tasks virtualisation --- roles/workstation/defaults/main.yml | 1 - roles/workstation/tasks/main.yml | 3 +++ roles/workstation/tasks/virtualisation.yml | 13 +++++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 roles/workstation/tasks/virtualisation.yml diff --git a/roles/workstation/defaults/main.yml b/roles/workstation/defaults/main.yml index f1e8031..0b668d1 100644 --- a/roles/workstation/defaults/main.yml +++ b/roles/workstation/defaults/main.yml @@ -151,7 +151,6 @@ pacman_pkgs: - "{{ pacman_3Dprint }}" - "{{ pacman_fonts }}" - "{{ pacman_programming }}" - - "{{ pacman_virtualisation }}" - "{{ pacman_gtk }}" aur_utils: diff --git a/roles/workstation/tasks/main.yml b/roles/workstation/tasks/main.yml index 0986d11..4a5016e 100644 --- a/roles/workstation/tasks/main.yml +++ b/roles/workstation/tasks/main.yml @@ -42,6 +42,9 @@ enabled: yes state: started +- name: Virtualisation tools + import_tasks: virtualisation.yml + - name: activate autofs import_tasks: home_mounts.yml when: autofs | length > 0 diff --git a/roles/workstation/tasks/virtualisation.yml b/roles/workstation/tasks/virtualisation.yml new file mode 100644 index 0000000..17a1421 --- /dev/null +++ b/roles/workstation/tasks/virtualisation.yml @@ -0,0 +1,13 @@ +--- +- name: Install pkgs + community.general.pacman: + name: "{{ item }}" + state: present + with_items: "{{ pacman_virtualisation }}" + +- name: enable service libvirtd + systemd: + name: libvirtd + enabled: yes + state: started +