Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
348 B

{% for element in pve_cluster | selectattr("type","equalto","node") | sort(attribute='id')%}
node:
ip_port = 7777
ip_address = {{ element.ip }}
number = {{ loop.index0 }}
name = {{ element.name }}
cluster = ocfs2
{% endfor %}
cluster:
node_count = {{ pve_cluster | selectattr("type","equalto","node") | list | length }}
name = ocfs2