main.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Copyright 2022 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. - block:
  17. - name: Check freeipa installed or not
  18. include_tasks: check_prerequisites.yml
  19. - block:
  20. - name: Add ports of manager and login node to firewall
  21. include_tasks: firewall_settings.yml
  22. - name: Enable module idm
  23. include_tasks: enable_dnf_module.yml
  24. - name: Install required packages
  25. include_tasks: install_packages.yml
  26. - name: Install FreeIPA server
  27. include_tasks: install_ipa_server.yml
  28. when: not freeipa_status
  29. - name: FreeIPA configuration
  30. include_tasks: ipa_configuration.yml
  31. when: os_supported_leap not in mgmt_os
  32. - block:
  33. - name: Install 389 directory server
  34. include_tasks: install_389ds.yml
  35. - name: Install Apparmor on Leap
  36. include_tasks: install_apparmor.yml
  37. when: os_supported_leap in mgmt_os
  38. - name: Install snoopy
  39. include_tasks: install_snoopy.yml
  40. - name: Install psacct/acct
  41. include_tasks: user_monitor.yml
  42. - name: Alert configuration
  43. include_tasks: configure_alerting.yml
  44. when: alert_email_address | length > 1
  45. - name: Session timeout configuration
  46. include_tasks: session_timeout.yml
  47. when: enable_security_support