count_component_roles.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. # limitations under the License.
  13. ---
  14. - name: Count of manager nodes defined
  15. set_fact:
  16. count_of_manager: "{{ count_of_manager| int + 1 }}"
  17. when: item == group_name_manager
  18. tags: install
  19. - name: Count of compute nodes defined
  20. set_fact:
  21. count_of_compute: "{{ count_of_compute| int + 1 }}"
  22. when: item == group_name_compute
  23. tags: install
  24. - name: Count of login nodes defined
  25. set_fact:
  26. count_of_login: "{{ count_of_login| int + 1 }}"
  27. when: item == group_name_login
  28. tags: install
  29. - name: Count of NFS nodes defined
  30. set_fact:
  31. count_of_nfs_node: "{{ count_of_nfs_node| int + 1 }}"
  32. when: item == group_name_nfs
  33. tags: install