- set_fact:
total: "{{ total|default(0)|int + item|int }}"
loop:
- 1
- 4
- 3
- debug: var=total
References:
- 1 Sum numbers over loop
- set_fact:
total: "{{ total|default(0)|int + item|int }}"
loop:
- 1
- 4
- 3
- debug: var=total
References: