Commit fa2434cb authored by nanahira's avatar nanahira

fedora

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