We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9835e9c commit e16dce9Copy full SHA for e16dce9
stress-tests/test2.yml
@@ -1,13 +1,21 @@
1
-- name: Generate fast, huge output with debug
+---
2
+- name: Generate fast, large debug output with long random lines
3
hosts: localhost
4
gather_facts: no
-
5
vars:
6
- total_messages: 5000
+ total_messages: 1000
7
+ line_length: 3000
8
9
tasks:
10
- - name: Print fast debug messages in loop
11
+ - name: Generate random lines
12
+ vars:
13
+ chars: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
14
debug:
- msg: "Line number {{ item }}"
- loop: "{{ range(1, total_messages + 1) | list }}"
15
+ msg: "{{ item }}"
16
+ loop: >
17
+ {{
18
+ range(1, total_messages + 1) | map('int') |
19
+ map('regex_replace', '.*', chars | community.general.random_choice(length=line_length)) |
20
+ list
21
+ }}
0 commit comments