main.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Copyright 2021 Dell Inc. or its subsidiaries. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. ---
  15. - block:
  16. - name: Add ports to firewall to run slurm jobs
  17. include_tasks: firewall_settings.yml
  18. - name: Install ipa client
  19. include_tasks: install_ipa_client.yml
  20. - block:
  21. - name: FreeIPA configuration
  22. include_tasks: ipa_configuration.yml
  23. - name: Install Apparmor on Leap
  24. include_tasks: install_apparmor.yml
  25. - name: Install snoopy
  26. include_tasks: install_snoopy.yml
  27. - name: Install psacct/acct
  28. include_tasks: user_monitor.yml
  29. - name: Alert configuration
  30. include_tasks: configure_alerting.yml
  31. when: hostvars['127.0.0.1']['alert_email_address'] | length > 1
  32. - name: Configure ssh access to login node
  33. include_tasks: configure_sshd.yml
  34. - name: Session timeout configuration
  35. include_tasks: session_timeout.yml
  36. when: hostvars['127.0.0.1']['enable_secure_login_node']
  37. when:
  38. - hostvars['127.0.0.1']['login_node_required']
  39. - hostvars[groups['manager'][0]] != hostvars[groups['login_node'][0]]