From 9cc50944f54145191ae093e26f59a57ec0041c82 Mon Sep 17 00:00:00 2001 From: ckji Date: Tue, 16 Dec 2025 17:48:49 +0800 Subject: [PATCH] suppress yum cmd warning supress warning: [WARNING]: Consider using the yum module rather than running 'yum'. If you need to use command because yum is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message. --- .../workspace/roles/prepare/base/tasks/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/kubernetes-1.31.1/workspace/roles/prepare/base/tasks/main.yml b/plugins/kubernetes-1.31.1/workspace/roles/prepare/base/tasks/main.yml index a5e6de6..c1b9faa 100755 --- a/plugins/kubernetes-1.31.1/workspace/roles/prepare/base/tasks/main.yml +++ b/plugins/kubernetes-1.31.1/workspace/roles/prepare/base/tasks/main.yml @@ -29,7 +29,9 @@ with_fileglob: "{{ oeversion }}/{{ arch }}/*.rpm" - name: Install base package - shell: yum localinstall -y --disablerepo=\* "{{ rpm_dir }}"/*.rpm --skip-broken + shell: + cmd: yum localinstall -y --disablerepo=\* "{{ rpm_dir }}"/*.rpm --skip-broken + warn: false ignore_errors: true - name: Disable swap -- Gitee