main.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. - name: Verify domain name in hostname - rocky and centos
  16. include_tasks: validate_hostname.yml
  17. when:
  18. - os_leap not in ansible_distribution | lower
  19. - hostvars['127.0.0.1']['login_node_required']
  20. - hostvars['127.0.0.1']['ipa_server_ms'] and login_node_group in group_names or
  21. not hostvars['127.0.0.1']['ipa_server_ms']
  22. - name: Verify domain name in hostname - leap
  23. include_tasks: validate_hostname.yml
  24. when:
  25. - os_leap in ansible_distribution | lower
  26. - hostvars['127.0.0.1']['login_node_required']
  27. - login_node_group in group_names
  28. - name: Include cluster_validation vars file
  29. include_vars: "{{ role_path }}/../cluster_validation/vars/main.yml"
  30. - name: Validate login node variables if rocky MS and leap login node
  31. include_tasks: validate_login_node_vars.yml
  32. run_once: true
  33. when:
  34. - os_leap in ansible_distribution | lower
  35. - hostvars['127.0.0.1']['login_node_required']
  36. - hostvars['127.0.0.1']['ipa_server_ms']