22 lines
572 B
YAML
22 lines
572 B
YAML
---
|
|
- name: Install packages (Archlinux)
|
|
become: true
|
|
community.general.pacman:
|
|
name:
|
|
- vagrant
|
|
- nfs-utils
|
|
when: ansible_facts['distribution'] == 'Archlinux'
|
|
|
|
- name: Install packages (Debian)
|
|
become: true
|
|
ansible.builtin.apt:
|
|
name:
|
|
- vagrant
|
|
- vagrant-libvirt
|
|
when: ansible_facts['distribution'] == 'Debian'
|
|
|
|
- name: Install libvirt provider
|
|
ansible.builtin.command:
|
|
cmd: vagrant plugin install vagrant-libvirt
|
|
creates: ~/.vagrant.d/gems/*/gems/vagrant-libvirt-*
|
|
when: ansible_facts['distribution'] == 'Archlinux'
|