f1dd4fb3c0
Replace deprecated ansible_user_dir/ansible_user_id with ansible_facts['user_dir'/'user_id'] across all roles. Switch git repo URLs from HTTPS to SSH. Split site.yml into two plays so user-facing roles (dotfiles, scripts, hotkeys) run without become.
21 lines
421 B
YAML
21 lines
421 B
YAML
---
|
|
- name: Install virtualization packages
|
|
community.general.pacman:
|
|
name:
|
|
- qemu-full
|
|
- virt-manager
|
|
- cloud-image-utils
|
|
state: present
|
|
|
|
- name: Enable libvirtd service
|
|
ansible.builtin.service:
|
|
name: libvirtd
|
|
state: started
|
|
enabled: true
|
|
|
|
- name: Add user to libvirt group
|
|
ansible.builtin.user:
|
|
name: "{{ ansible_facts['user_id'] }}"
|
|
groups: libvirt
|
|
append: true
|