my playbook looks like
- hosts: web:back:front
serial: "{{ groups[group_names[0]] | length }}"
when i execute, it doesn’t seem to work as the error points out that group_names variable is undefined
How can i get the serial value to match the number of hosts in the current group ?
1