Commit 4baf346c authored by nanahira's avatar nanahira

improve

parent cb509814
......@@ -9,6 +9,12 @@
state: latest
update_cache: true
name: sudo,python,qemu,qemu-kvm,libvirt-bin,bridge-utils,virtinst,libguestfs-tools,python-libvirt,python-lxml
- name: epel 7
become: true
yum:
state: latest
name: epel-release
when: "ansible_distribution == 'CentOS' and ansible_distribution_major_version|int <= 7"
- name: yum
become: true
when: "ansible_distribution == 'CentOS' and ansible_distribution_major_version|int <= 7"
......@@ -16,6 +22,12 @@
state: latest
update_cache: true
name: sudo,python,kvm,qemu-kvm,qemu-kvm-tools,qemu-img,libvirt,libvirt-python,libguestfs-tools,bridge-utils,virt-install,python-lxml
- name: epel 8
become: true
dnf:
state: latest
name: epel-release
when: "ansible_distribution == 'CentOS' and ansible_distribution_major_version|int == 8"
- name: dnf
become: true
when: "ansible_distribution == 'CentOS' and ansible_distribution_major_version|int == 8"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment