瀏覽代碼

Update enable_dnf_module.yml

Signed-off-by: abhishek-sa1 <abhishek.sa3@dell.com>
abhishek-sa1 3 年之前
父節點
當前提交
e7c3aa2ae4
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      control_plane/roles/control_plane_security/tasks/enable_dnf_module.yml

+ 4 - 4
control_plane/roles/control_plane_security/tasks/enable_dnf_module.yml

@@ -13,9 +13,9 @@
 #  limitations under the License.
 ---
 
-- name: Enable module idm in Rocky or Centos >= 8.0
+- name: Enable module idm in Rocky or CentOS
   command: dnf module enable idm:DL1 -y
+  changed_when: false
   when:
-    - ( ansible_distribution | lower == os_centos ) or
-      ( ansible_distribution | lower == os_rocky )
-    - ( ansible_distribution_version >= os_version )
+    - ( os_supported_centos in mgmt_os ) or
+      ( os_supported_rocky in mgmt_os )