1 # Install the packages required for our desired libvirt environment.
2 # We store the list of packages in `libvirt_packages` so that in
3 # theory we can support multiple distributions simply by passing in a
4 # different list of packages.
5 - name: Install packages for libvirt
7 name: "{{ libvirt_packages }}"
10 when: ansible_os_family == "RedHat" and ansible_lsb.major_release|int == 7
12 - name: Install packages for libvirt
14 name: "{{ libvirt_packages_rhel8 }}"
17 when: ansible_os_family == "RedHat" and ansible_lsb.major_release|int == 8
19 - name: Install packages for libvirt on Ubuntu
21 - ansible_facts['distribution'] == "Ubuntu"
23 name: "{{ ubuntu_libvirt_packages }}"
27 - name: Start libvirtd
29 name: "{{ libvirtd_service }}"