# Copyright 2021 Dell Inc. or its subsidiaries. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# limitations under the License.
---

- name: Count of manager nodes defined
  set_fact:
    count_of_manager: "{{ count_of_manager| int + 1 }}"
  when: item == group_name_manager
  tags: install

- name: Count of compute nodes defined
  set_fact:
    count_of_compute: "{{ count_of_compute| int + 1 }}"
  when: item == group_name_compute
  tags: install

- name: Count of login nodes defined
  set_fact:
    count_of_login: "{{ count_of_login| int + 1 }}"
  when: item == group_name_login
  tags: install

- name: Count of NFS nodes defined
  set_fact:
    count_of_nfs_node: "{{ count_of_nfs_node| int + 1 }}"
  when: item == group_name_nfs
  tags: install
