issue #426: fix local/delegate_to issue

issue510
David Wilson 7 years ago
parent 4553039ed2
commit 44d6ca771a

@ -5,11 +5,11 @@
tasks: tasks:
- name: Make 32MiB file - name: Make 32MiB file
connection: local delegate_to: localhost
shell: openssl rand 33554432 > /tmp/bigfile.in shell: openssl rand 33554432 > /tmp/bigfile.in
- name: Make 320MiB file - name: Make 320MiB file
connection: local delegate_to: localhost
shell: > shell: >
cat cat
/tmp/bigfile.in /tmp/bigfile.in
@ -47,21 +47,21 @@
file: file:
path: "{{item}}" path: "{{item}}"
state: absent state: absent
connection: local delegate_to: localhost
become: true become: true
with_items: with_items:
- /tmp/bigfile.out - /tmp/bigfile.out
- /tmp/bigbigfile.out - /tmp/bigbigfile.out
- name: Copy 32MiB file via localhost sudo - name: Copy 32MiB file via localhost sudo
connection: local delegate_to: localhost
become: true become: true
copy: copy:
src: /tmp/bigfile.in src: /tmp/bigfile.in
dest: /tmp/bigfile.out dest: /tmp/bigfile.out
- name: Copy 320MiB file via localhost sudo - name: Copy 320MiB file via localhost sudo
connection: local delegate_to: localhost
become: true become: true
copy: copy:
src: /tmp/bigbigfile.in src: /tmp/bigbigfile.in

Loading…
Cancel
Save