diff --git a/plugins/dotnet-8/config.yaml b/plugins/dotnet-8/config.yaml index ad78d3f1fa10f5855ba430805d91f58074868e7d..b7236e3de4eefb1b229d6071fb95212079b90fe1 100644 --- a/plugins/dotnet-8/config.yaml +++ b/plugins/dotnet-8/config.yaml @@ -17,26 +17,26 @@ all: # 包列表 - 生产环境 dotnet8_production_packages: - - "dotnet-host-8.0.4" - - "dotnet-hostfxr-8.0-8.0.4" - - "dotnet-runtime-8.0-8.0.4" - - "aspnetcore-runtime-8.0-8.0.4" + - "dotnet-host-8.0.4-*" + - "dotnet-hostfxr-8.0-8.0.4-*" + - "dotnet-runtime-8.0-8.0.4-*" + - "aspnetcore-runtime-8.0-8.0.4-*" # 包列表 - 开发环境(包含SDK和调试包) dotnet8_development_packages: - - "dotnet-host-8.0.4" - - "dotnet-hostfxr-8.0-8.0.4" - - "dotnet-runtime-8.0-8.0.4" - - "dotnet-runtime-dbg-8.0-8.0.4" - - "aspnetcore-runtime-8.0-8.0.4" - - "aspnetcore-runtime-dbg-8.0-8.0.4" - - "dotnet-sdk-8.0-8.0.104" - - "dotnet-sdk-dbg-8.0-8.0.104" - - "dotnet-apphost-pack-8.0-8.0.4" - - "dotnet-targeting-pack-8.0-8.0.4" - - "aspnetcore-targeting-pack-8.0-8.0.4" - - "dotnet-templates-8.0-8.0.104" - - "netstandard-targeting-pack-2.1-8.0.104" + - "dotnet-host-8.0.4-*" + - "dotnet-hostfxr-8.0-8.0.4-*" + - "dotnet-runtime-8.0-8.0.4-*" + - "dotnet-runtime-dbg-8.0-8.0.4-*" + - "aspnetcore-runtime-8.0-8.0.4-*" + - "aspnetcore-runtime-dbg-8.0-8.0.4-*" + - "dotnet-sdk-8.0-8.0.104-*" + - "dotnet-sdk-dbg-8.0-8.0.104-*" + - "dotnet-apphost-pack-8.0-8.0.4-*" + - "dotnet-targeting-pack-8.0-8.0.4-*" + - "aspnetcore-targeting-pack-8.0-8.0.4-*" + - "dotnet-templates-8.0-8.0.104-*" + - "netstandard-targeting-pack-2.1-8.0.104-*" # 环境类型(production/development) environment_type: "development" \ No newline at end of file diff --git a/plugins/dotnet-8/workspace/roles/uninstall/tasks/main.yml b/plugins/dotnet-8/workspace/roles/uninstall/tasks/main.yml index 89088900c528bf080207c63b3f7076b93c685316..d93102292d13b8c21cf84684fe64671aec19b3fd 100644 --- a/plugins/dotnet-8/workspace/roles/uninstall/tasks/main.yml +++ b/plugins/dotnet-8/workspace/roles/uninstall/tasks/main.yml @@ -14,6 +14,13 @@ when: environment_type == 'development' ignore_errors: yes +- name: Verify .NET 8 has been removed + shell: rpm -qa | grep dotnet || true + register: dotnet_rpm_list + +- debug: + msg: "Remaining dotnet packages: {{ dotnet_rpm_list.stdout_lines }}" + - name: Remove .NET 8 repository file file: path: /etc/yum.repos.d/dotnet-8.repo diff --git a/plugins/dotnet-9/config.yaml b/plugins/dotnet-9/config.yaml index 498f38819e80a41d05da8371848cec441f1fd129..1c521963cb45915b9d61597cdc2935d99aacf673 100644 --- a/plugins/dotnet-9/config.yaml +++ b/plugins/dotnet-9/config.yaml @@ -17,26 +17,26 @@ all: # 包列表 - 生产环境 dotnet9_production_packages: - - "dotnet-host-9.0.8" - - "dotnet-hostfxr-9.0-9.0.8" - - "dotnet-runtime-9.0-9.0.8" - - "aspnetcore-runtime-9.0-9.0.8" + - "dotnet-host-9.0.8-*" + - "dotnet-hostfxr-9.0-9.0.8-*" + - "dotnet-runtime-9.0-9.0.8-*" + - "aspnetcore-runtime-9.0-9.0.8-*" # 包列表 - 开发环境(包含SDK和调试包) dotnet9_development_packages: - - "dotnet-host-9.0.8" - - "dotnet-hostfxr-9.0-9.0.8" - - "dotnet-runtime-9.0-9.0.8" - - "dotnet-runtime-dbg-9.0-9.0.8" - - "aspnetcore-runtime-9.0-9.0.8" - - "aspnetcore-runtime-dbg-9.0-9.0.8" - - "dotnet-sdk-9.0-9.0.109" - - "dotnet-sdk-dbg-9.0-9.0.109" - - "dotnet-apphost-pack-9.0-9.0.8" - - "dotnet-targeting-pack-9.0-9.0.8" - - "aspnetcore-targeting-pack-9.0-9.0.8" - - "dotnet-templates-9.0-9.0.109" - - "netstandard-targeting-pack-2.1-9.0.109" + - "dotnet-host-9.0.8-*" + - "dotnet-hostfxr-9.0-9.0.8-*" + - "dotnet-runtime-9.0-9.0.8-*" + - "dotnet-runtime-dbg-9.0-9.0.8-*" + - "aspnetcore-runtime-9.0-9.0.8-*" + - "aspnetcore-runtime-dbg-9.0-9.0.8-*" + - "dotnet-sdk-9.0-9.0.109-*" + - "dotnet-sdk-dbg-9.0-9.0.109-*" + - "dotnet-apphost-pack-9.0-9.0.8-*" + - "dotnet-targeting-pack-9.0-9.0.8-*" + - "aspnetcore-targeting-pack-9.0-9.0.8-*" + - "dotnet-templates-9.0-9.0.109-*" + - "netstandard-targeting-pack-2.1-9.0.109-*" # 环境类型(production/development) environment_type: "development" \ No newline at end of file diff --git a/plugins/dotnet-9/workspace/roles/uninstall/tasks/main.yml b/plugins/dotnet-9/workspace/roles/uninstall/tasks/main.yml index fcb1f0acc54136116cf7d41e09d7ac73a31e220e..020b4af0c9c86aa474f662a6a24c6df342bb155f 100644 --- a/plugins/dotnet-9/workspace/roles/uninstall/tasks/main.yml +++ b/plugins/dotnet-9/workspace/roles/uninstall/tasks/main.yml @@ -14,6 +14,13 @@ when: environment_type == 'development' ignore_errors: yes +- name: Verify .NET 9 has been removed + shell: rpm -qa | grep dotnet || true + register: dotnet_rpm_list + +- debug: + msg: "Remaining dotnet packages: {{ dotnet_rpm_list.stdout_lines }}" + - name: Remove .NET 9 repository file file: path: /etc/yum.repos.d/dotnet-9.repo