File: loop-100-items.yml

package info (click to toggle)
python-mitogen 0.3.36-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,708 kB
  • sloc: python: 24,457; sh: 198; makefile: 74; perl: 19; ansic: 18
file content (13 lines) | stat: -rw-r--r-- 414 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Execute 'hostname' 100 times in a loop. Loops execute within TaskExecutor
# within a single WorkerProcess, each iteration is a fair approximation of the
# non-controller overhead involved in executing a task.
#
# See also: loop-100-tasks.yml
#
- name: bench/loop-100-items.yml
  hosts: all
  tasks:
    - command: hostname
      with_sequence: start=1 end="{{end|default(100)}}"
  tags:
    - resource_intensive