Update virtual for arch
This commit is contained in:
parent
6575486db6
commit
9d0af474b7
@ -1,5 +1,6 @@
|
||||
---
|
||||
- name: install libvirt packages
|
||||
- name: install libvirt packages [Ubuntu]
|
||||
when: ansible_distribution == "Ubuntu"
|
||||
become: yes
|
||||
apt:
|
||||
update_cache: yes
|
||||
@ -11,9 +12,26 @@
|
||||
- libvirt-clients
|
||||
- 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
|
||||
become: yes
|
||||
user:
|
||||
name: "{{ ansible_user_id }}"
|
||||
append: yes
|
||||
groups: libvirt, kvm
|
||||
|
||||
- name: enable default network
|
||||
become: yes
|
||||
shell:
|
||||
cmd:
|
||||
virsh net-autostart default
|
||||
virsh net-start default
|
||||
|
6
roles/virtual/tasks/looking-glass-arch.yml
Normal file
6
roles/virtual/tasks/looking-glass-arch.yml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
- name: install IntelliJ [AUR]
|
||||
shell:
|
||||
cmd:
|
||||
yay -S --needed --noconfirm \
|
||||
intellij-idea-ultimate-edition
|
@ -1,4 +1,8 @@
|
||||
---
|
||||
- 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"
|
||||
|
Loading…
Reference in New Issue
Block a user