You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{%setfirst_host = play_group_hosts | first | mandatory('Inventory group "' ~ inventory_group_name ~ '" contains no hosts in this play - was --limit used?') %}
{% set inventory_group_name = openhpc_cluster_name ~ '_' ~ nodegroup.name %}
27
+
{% set inventory_group_hosts = groups.get(inventory_group_name, []) %}
28
+
{% if inventory_group_hosts | length > 0 %}
29
+
{% set play_group_hosts = inventory_group_hosts | intersect (play_hosts) %}
30
+
{% set first_host = play_group_hosts | first | mandatory('Inventory group "' ~ inventory_group_name ~ '" contains no hosts in this play - was --limit used?') %}
31
+
{% set first_host_hv = hostvars[first_host] %}
32
+
{% set ram_mb = (first_host_hv['ansible_memory_mb']['real']['total'] * (nodegroup.ram_multiplier | default(openhpc_ram_multiplier))) | int %}
0 commit comments