From ef524777c4152b6e5dd2fd2c82b35a1828d0b29b Mon Sep 17 00:00:00 2001 From: Jianzhu Zhang Date: Sun, 2 Aug 2020 10:07:31 -0400 Subject: [PATCH] use pip to manage python modules rather than the package manager --- tasks/virthost-basics.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tasks/virthost-basics.yml b/tasks/virthost-basics.yml index 10b2153..465abfc 100644 --- a/tasks/virthost-basics.yml +++ b/tasks/virthost-basics.yml @@ -15,8 +15,13 @@ - virt-install - genisoimage - nmap - - "{{ 'python3-libvirt' if ansible_facts['distribution'] == 'Fedora' and (ansible_facts['distribution_major_version']|int) > 30 else 'libvirt-python' }}" - - python-lxml + +- name: pip install python modules + pip: + name: "{{ item }}" + with_items: + - lxml + - libvirt-python - name: Start and enable libvirtd service: