Update virtual for arch

This commit is contained in:
Przemek Grondek 2024-01-10 15:11:23 +01:00
parent 6575486db6
commit 9d0af474b7
4 changed files with 30 additions and 2 deletions

View File

@ -1,5 +1,6 @@
--- ---
- name: install libvirt packages - name: install libvirt packages [Ubuntu]
when: ansible_distribution == "Ubuntu"
become: yes become: yes
apt: apt:
update_cache: yes update_cache: yes
@ -11,9 +12,26 @@
- libvirt-clients - libvirt-clients
- bridge-utils - bridge-utils
- name: install libvirt packages [Arch]
become: yes
community.general.pacman:
name:
- kvm
- qemu-full
- libvirt
- virt-manager
- virt-viewer
- name: ensure that your user is added to the group libvirtd - name: ensure that your user is added to the group libvirtd
become: yes become: yes
user: user:
name: "{{ ansible_user_id }}" name: "{{ ansible_user_id }}"
append: yes append: yes
groups: libvirt, kvm groups: libvirt, kvm
- name: enable default network
become: yes
shell:
cmd:
virsh net-autostart default
virsh net-start default

View File

@ -0,0 +1,6 @@
---
- name: install IntelliJ [AUR]
shell:
cmd:
yay -S --needed --noconfirm \
intellij-idea-ultimate-edition

View File

@ -1,4 +1,8 @@
--- ---
- import_tasks: libvirt.yml - import_tasks: libvirt.yml
- import_tasks: looking-glass.yml - import_tasks: looking-glass-compile.yml
when: ansible_distribution == "Ubuntu"
- import_tasks: looking-glass-arch.yml
when: ansible_distribution == "Archlinux"