Commit fa2434cb authored by nanahira's avatar nanahira

fedora

parent fefdfcee
......@@ -54,10 +54,10 @@
dnf:
state: latest
name: epel-release
when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version|int == 8"
when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >= 8"
- name: dnf
become: true
when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version|int == 8"
when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >= 8"
dnf:
state: latest
name: sudo,python3,qemu-kvm,qemu-img,libvirt,python3-libvirt,libguestfs-tools,virt-install,python3-lxml
......
......@@ -38,13 +38,13 @@
dnf:
state: latest
name: epel-release
when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version|int == 8"
when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >= 8"
- name: dnf
become: true
dnf:
state: latest
name: curl,wget,gcc,gcc-c++,make,sqlite-devel,readline-devel,openssl-devel,libevent-devel,redis,p7zip,p7zip-plugins,tar,unzip
when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version|int == 8"
when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >= 8"
- name: ygopro
git:
repo: 'https://github.com/{{fork}}/ygopro'
......
......@@ -32,4 +32,4 @@
dnf:
state: latest
name: mono-complete
when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version|int == 8"
when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >= 8"
......@@ -51,13 +51,13 @@
dnf:
state: latest
name: epel-release
when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version|int == 8"
when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >= 8"
- name: nodejs from dnf
become: true
dnf:
state: latest
name: nodejs,npm
when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version|int == 8"
when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >= 8"
- name: npm
become: true
npm:
......
......@@ -60,10 +60,10 @@
dnf:
state: latest
name: epel-release
when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version|int == 8"
when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >= 8"
- name: 安装软件包 (dnf)
become: true
dnf:
state: latest
name: wireguard-tools,wireguard-dkms
when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version|int == 8"
when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >= 8"
......@@ -28,7 +28,7 @@
when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version|int == 7"
- name: dnf
include_tasks: ./roles/init/tasks/dnf.yml
when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version|int == 8"
when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >= 8"
- name: redhat configures
include_tasks: ./roles/init/tasks/redhat_configures.yml
when: "ansible_os_family == 'RedHat'"
......
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