30 lines
756 B
YAML
30 lines
756 B
YAML
|
# issue #140: with_filetree use caused unbounded (>500) thread growth in target
|
||
|
# interpreter. No easy hook to check thread count, but doing a 1000 item
|
||
|
# with_items should crash for other reasons (RAM, file descriptor count, ..)
|
||
|
|
||
|
- name: regression/issue_140__thread_pileup.yml
|
||
|
hosts: all
|
||
|
any_errors_fatal: true
|
||
|
tasks:
|
||
|
|
||
|
- name: Create file tree
|
||
|
connection: local
|
||
|
shell: >
|
||
|
mkdir filetree;
|
||
|
for i in `seq 1 1000` ; do echo $i > filetree/$i ; done
|
||
|
args:
|
||
|
creates: filetree
|
||
|
|
||
|
|
||
|
- name: Delete remote file tree
|
||
|
shell: rm -rf /tmp/filetree
|
||
|
|
||
|
|
||
|
- name: Trigger nasty process pileup
|
||
|
synchronize:
|
||
|
src: "{{ item.src }}"
|
||
|
dest: "/tmp/filetree"
|
||
|
with_filetree:
|
||
|
- filetree
|
||
|
when: item.state == 'file'
|