File tree Expand file tree Collapse file tree 2 files changed +8
-16
lines changed Expand file tree Collapse file tree 2 files changed +8
-16
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
collections :
3
3
- pureport.fabric
4
-
4
+ - community.general
Original file line number Diff line number Diff line change 1
- ---
2
- - name : Generate fast, large debug output with long random lines
1
+ - name : Generate fast, huge output with debug
3
2
hosts : localhost
4
3
gather_facts : no
4
+
5
5
vars :
6
- total_messages : 1000
7
- line_length : 3000
6
+ total_messages : 5000
8
7
9
8
tasks :
10
9
11
- - name : Generate random lines
12
- vars :
13
- chars : " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
14
- debug :
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
- }}
10
+ - name : Print fast debug messages in loop
11
+ ansible.builtin.debug :
12
+ var : lookup('community.general.random_pet', words=300)
13
+ loop : " {{ range(1, total_messages + 1) | list }}"
You can’t perform that action at this time.
0 commit comments