From b2b66f922ecd3d44961281f87d9bf9d732181a10 Mon Sep 17 00:00:00 2001 From: Awan <155275944+GitHubAwan@users.noreply.github.com> Date: Sat, 3 Aug 2024 12:55:56 -0700 Subject: [PATCH] Update main.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正centos9 这个task不运行的问题. --- roles/prepare/tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/prepare/tasks/main.yml b/roles/prepare/tasks/main.yml index ee8053d..caf26b2 100644 --- a/roles/prepare/tasks/main.yml +++ b/roles/prepare/tasks/main.yml @@ -2,7 +2,8 @@ when: 'ansible_distribution_file_variety in ["Debian"]' - import_tasks: redhat.yml - when: 'ansible_distribution_file_variety in ["RedHat"]' + # when: 'ansible_distribution_file_variety in ["RedHat"]' + when: ansible_distribution_file_variety in ["RedHat"] or ansible_distribution in ["CentOS"] - import_tasks: suse.yml when: 'ansible_distribution_file_variety in ["SUSE"]'