Kindly excuse if my question is trivial.
I want to sum up the elements of a dictionary. I used the following, but
couldnt get it working. Please help.
vars:
usedcpus: 0
- name: cpu check
set_fact:
usedcpus= "{{usedcpus | int}} + {{item.value.cpucount | int}}"
when: item.value
with_dict: somedict
--
You received this message because you are subscribed to the Google Groups
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.