소스 검색

Update main.yml

Signed-off-by: abhishek-sa1 <abhishek.sa3@dell.com>
abhishek-sa1 3 년 전
부모
커밋
55425022f2
1개의 변경된 파일18개의 추가작업 그리고 8개의 파일을 삭제
  1. 18 8
      roles/login_node/tasks/main.yml

+ 18 - 8
roles/login_node/tasks/main.yml

@@ -13,14 +13,24 @@
 #  limitations under the License.
 ---
 
-- name: Add ports to firewall to run slurm jobs
-  include_tasks: firewall_settings.yml
-  when:
-    - hostvars['127.0.0.1']['login_node_required']
-    - hostvars[groups['manager'][0]] != hostvars[groups['login_node'][0]]
+- block:
+    - name: Add ports to firewall to run slurm jobs
+      include_tasks: firewall_settings.yml
+    
+    - name: Install ipa client
+      include_tasks: install_ipa_client.yml
 
-- name: Install ipa client
-  include_tasks: install_ipa_client.yml
+    - block:
+        - name: FreeIPA configuration
+          include_tasks: ipa_configuration.yml
+
+        - name: Alert configuration
+          include_tasks: configure_alerting.yml
+          when: hostvars['127.0.0.1']['alert_email_address'] | length > 1
+        
+        - name: Session timeout configuration
+          include_tasks: session_timeout.yml
+      when: hostvars['127.0.0.1']['enable_secure_login_node']
   when:
     - hostvars['127.0.0.1']['login_node_required']
-    - hostvars[groups['manager'][0]] != hostvars[groups['login_node'][0]]
+    - hostvars[groups['manager'][0]] != hostvars[groups['login_node'][0]]