count_component_roles.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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. # 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. - name: Count of compute nodes defined
  19. set_fact:
  20. count_of_compute: "{{ count_of_compute| int + 1 }}"
  21. when: item == group_name_compute
  22. - name: Count of login nodes defined
  23. set_fact:
  24. count_of_login: "{{ count_of_login| int + 1 }}"
  25. when: item == group_name_login
  26. - name: Count of NFS nodes defined
  27. set_fact:
  28. count_of_nfs_node: "{{ count_of_nfs_node| int + 1 }}"
  29. when: item == group_name_nfs