Преглед изворни кода

Update main.yml

Signed-off-by: abhishek-sa1 <abhishek.sa3@dell.com>
abhishek-sa1 пре 3 година
родитељ
комит
e4691f1aac
1 измењених фајлова са 23 додато и 20 уклоњено
  1. 23 20
      control_plane/roles/control_plane_security/tasks/main.yml

+ 23 - 20
control_plane/roles/control_plane_security/tasks/main.yml

@@ -13,27 +13,30 @@
 #  limitations under the License.
 ---
 
-- name: Add ports of manager and login node to firewall
-  include_tasks: firewall_settings.yml
-  when:
-    - enable_security_support
+- block:
+    - name: Check freeipa installed or not
+      include_tasks: check_prerequisites.yml
 
-- name: Enable module idm in Rocky or Centos >= 8.0
-  include_tasks: enable_dnf_module.yml
-  when:
-    - enable_security_support
+    - block:
+        - name: Add ports of manager and login node to firewall
+          include_tasks: firewall_settings.yml
 
-- name: Update Packages
-  include_tasks: update_package.yml
-  when:
-    - enable_security_support
+        - name: Enable module idm in Rocky or Centos >= 8.0
+          include_tasks: enable_dnf_module.yml
 
-- name: Install required packages
-  include_tasks: install_packages.yml
-  when:
-    - enable_security_support
+        - name: Install required packages
+          include_tasks: install_packages.yml
+
+        - name: Install FreeIPA server
+          include_tasks: install_ipa_server.yml
+      when: not freeipa_status
+    
+    - name: FreeIPA configuration
+      include_tasks: ipa_configuration.yml
 
-- name: Install free-ipa server
-  include_tasks: install_ipa_server.yml
-  when:
-    - enable_security_support
+    - name: Session timeout configuration
+      include_tasks: session_timeout.yml
+  when: 
+    - enable_security_support
+    - ( os_supported_centos in mgmt_os ) or
+      ( os_supported_rocky in mgmt_os )