From 51c86d71fe59536dfd35dfaf04220daa542c365a Mon Sep 17 00:00:00 2001 From: Lu Qiuwen Date: Fri, 18 Nov 2022 06:00:32 -0500 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3nanomsg=E5=BA=93=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=AE=89=E8=A3=85=E7=9A=84Bug=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ansible/roles/wannat_common/tasks/main.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/ansible/roles/wannat_common/tasks/main.yml b/ansible/roles/wannat_common/tasks/main.yml index 2f72833c..405183a4 100644 --- a/ansible/roles/wannat_common/tasks/main.yml +++ b/ansible/roles/wannat_common/tasks/main.yml @@ -10,11 +10,7 @@ - /tmp/nanomsg-1.1.5-6.el7.x86_64.rpm state: present disable_gpg_check: yes - when: - - runtime_env == 'TSG-7400-mcn0' - - runtime_env == 'TSG-7400-mcn123' - - runtime_env == 'TSG-9140' - - runtime_env == 'TSG-X-P1403' + when: runtime_env == 'TSG-7400-mcn0' or runtime_env == 'TSG-7400-mcn123' or runtime_env == 'TSG-9140' or runtime_env == 'TSG-X-P1403' - name: "install nanomsg library rockylinux8" yum: @@ -22,9 +18,7 @@ - /tmp/nanomsg-1.1.5-6.el8.x86_64.rpm state: present disable_gpg_check: yes - when: - - runtime_env == 'TSG-X-P0804' - - runtime_env == 'TSG-X-P0906' + when: runtime_env == 'TSG-X-P0804' or runtime_env == 'TSG-X-P0906' - name: "Install wannat_common library" shell: rpm -i /tmp/rpm_download/{{ item.rpm_version }}* --prefix {{ item.prefix }}