- name: Setting OS version fact
osversion: "{{ ansible_distribution | lower }}{{ ansible_distribution_major_version }}"
msg: "OS Version( {{ ansible_distribution }}{{ ansible_distribution_major_version }} ) is not certified for the role"
- osversion != "ubuntu18"
- name: Check default vagrant provider variable
msg: "Default vagrant provider can be either libvirt or virtualbox"
- default_provider != "libvirt"
- default_provider != "virtualbox"
- name: Check default provider for Centos 8
- "Centos 8 has some issues with vagrant pluging that cannot be automated"
- "Please refer to the original documentation for manual steps"
- "https://github.com/vagrant-libvirt/vagrant-libvirt"
when: (default_provider == "libvirt") and (osversion == "centos8")