소스 검색

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 )