ansible/host: Use Python3 on CentOS 7
[tridge/autocluster.git] / ansible / host / autocluster_setup_centos7.yml
index eab4c99e4d9dc46133013db4b0e1eb9320acdab9..32c69c99bd042168c794f6a7063bb35775af5bc7 100644 (file)
@@ -4,9 +4,12 @@
   hosts: localhost
 
   tasks:
-  - name: dependencies for Vagrant libvirt plugin
+  - name: python3 installed
     package:
       name:
+      - epel-release
+      - python3
+
       - libvirt-devel
 
   - name: install latest vagrant rpm
@@ -23,8 +26,8 @@
   - name: dependencies for virt_pool module
     package:
       name:
-      - libvirt-python
-      - python-lxml
+      - python36-libvirt
+      - python36-lxml
       state: present
 
   - name: ensure /virtual/autocluster exists