- hosts: all tasks: - name: "Run hostname" command: hostname with_sequence: start=1 end={{end|default(100)}}